Merge pull request #8 from rutbergphilip/develop #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| - run: npm i -g --force corepack@latest && corepack enable | |
| - name: Install dependencies | |
| run: npx nypm@latest i | |
| - name: Lint | |
| run: npm run lint | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| nuxt-version: [3, 4] | |
| name: test (nuxt ${{ matrix.nuxt-version }}) | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| - run: npm i -g --force corepack@latest && corepack enable | |
| - name: Install dependencies | |
| run: npx nypm@latest i | |
| - name: Override to Nuxt 3 | |
| if: matrix.nuxt-version == 3 | |
| run: pnpm add -w nuxt@^3 | |
| - name: Playground prepare | |
| run: npm run dev:prepare | |
| - name: Type check | |
| if: matrix.nuxt-version == 4 | |
| run: npm run test:types | |
| - name: Test | |
| run: npm run test |