Skip to content

Commit

Permalink
ci: run test suite on windows (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Oct 14, 2024
1 parent 52a4aa5 commit fdc3059
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ permissions: {}

jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: corepack enable
Expand Down Expand Up @@ -45,10 +48,11 @@ jobs:

- run: pnpm dev:prepare
- run: pnpm lint
- run: pnpm test -- --coverage
- run: pnpm test
- run: pnpm build
- run: pnpm test:types
- run: pnpm dev:build
- uses: codecov/codecov-action@v4
if: matrix.os != 'windows-latest'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare client",
"release": "pnpm lint && pnpm test && pnpm prepack && changelogen --release && npm publish && git push --follow-tags",
"lint": "eslint .",
"test": "vitest run",
"test": "vitest run --coverage",
"test:types": "vue-tsc --noEmit && pnpm -r test:types",
"test:watch": "vitest watch"
},
Expand Down

0 comments on commit fdc3059

Please sign in to comment.