diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 688ed53..592945e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,8 +4,8 @@ on: - pull_request jobs: - build: - name: Build on ${{ matrix.os }} + test: + name: Test on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -13,26 +13,23 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] steps: - - name: Checkout - uses: actions/checkout@v3 - + - 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 + - run: pnpm install - name: Build vike-solid run: pnpm run build - - name: Build example basic + - name: Test building examples/basic run: pnpm run build working-directory: ./examples/basic - - - name: Build example ssr-spa + - name: Test building examples/ssr-spa run: pnpm run build working-directory: ./examples/ssr-spa + + - name: Test TypeScript examples/basic + run: pnpm exec tsc --noEmit + working-directory: ./examples/basic + - name: Test TypeScript examples/ssr-spa + run: pnpm exec tsc --noEmit + working-directory: ./examples/ssr-spa