From a7f8fdab202c8f92862a96356d05f57462be7dfe Mon Sep 17 00:00:00 2001 From: Aurelien Lourot Date: Wed, 23 Aug 2023 10:19:04 +0200 Subject: [PATCH] qual: set up CI Same as https://github.com/vikejs/vike-react/commit/dfbad33f --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b227cf2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: CI +on: + - push + +jobs: + build: + name: Build on ${{ matrix.os }} + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2 + name: Install pnpm + id: pnpm-install + with: + version: 8 + run_install: false + + - name: Install dependencies + run: pnpm install + + - name: Build vike-solid + run: pnpm run build + + - name: Build example basic + run: pnpm run build + working-directory: ./examples/basic + + - name: Build example ssr-spa + run: pnpm run build + working-directory: ./examples/ssr-spa