Skip to content

Commit

Permalink
chore: 2191 github ci run tests in parallel (#2195)
Browse files Browse the repository at this point in the history
feat(ci): github ci run tests in parallel
  • Loading branch information
alice-telescoop committed Feb 16, 2024
1 parent 57a41ce commit 9041c14
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
**/node_modules/
key: ${{ runner.os }}-node-${{ github.run_id }}
- run: npm run lint
tests:
tests-api-integ:
runs-on: ubuntu-latest
needs: build
steps:
Expand All @@ -61,4 +61,39 @@ jobs:
**/build/
**/node_modules/
key: ${{ runner.os }}-node-${{ github.run_id }}
- run: npm test
- run: npm run test:integ
working-directory: "./packages/api"
tests-api-unit:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.17"
- uses: actions/cache@v3
with:
path: |
**/tsoa/
**/build/
**/node_modules/
key: ${{ runner.os }}-node-${{ github.run_id }}
- run: npm run test:unit
working-directory: "./packages/api"
tests-front:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.17"
- uses: actions/cache@v3
with:
path: |
**/tsoa/
**/build/
**/node_modules/
key: ${{ runner.os }}-node-${{ github.run_id }}
- run: npm run test
working-directory: "./packages/front"

0 comments on commit 9041c14

Please sign in to comment.