Skip to content

Commit

Permalink
chore(.github/workflows): check quality concurrently (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli authored May 10, 2023
1 parent 4be891e commit 32cfb6a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
dist
esm
.eslintrc.js
packlint.config.mjs
packlint.config.mjs
15 changes: 6 additions & 9 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ jobs:
quality:
name: Check quality
runs-on: ubuntu-latest
strategy:
matrix:
command: ['pnpm lint', 'pnpm test', 'pnpm test:tsd']
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
Expand All @@ -19,12 +22,6 @@ jobs:
cache-dependency-path: 'pnpm-lock.yaml'
node-version-file: '.nvmrc'
- run: pnpm install --frozen-lockfile

- name: Build core packages
run: pnpm build --filter=@suspensive/react --filter=@suspensive/react-query

- name: Check eslint
run: pnpm lint

- name: Test by jest
run: pnpm test
- run: pnpm build --filter=@suspensive/react --filter=@suspensive/react-query
- name: Run commands
run: ${{ matrix.command }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"npm:publish": "turbo run npm:publish",
"postinstall": "husky install",
"test": "turbo run test",
"test:tsd": "turbo run test:tsd",
"type:check": "turbo run type:check --parallel"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"test": {
"outputs": []
},
"test:tsd": {
"outputs": []
},
"dev": {
"cache": false
},
Expand Down

0 comments on commit 32cfb6a

Please sign in to comment.