Skip to content

Commit

Permalink
use matrix for better perf
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Jul 4, 2024
1 parent 9a5dc77 commit c2d2a20
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

jobs:
main:
strategy:
matrix:
action: ['lint', 'test', 'build']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -45,6 +48,4 @@ jobs:
- run: git branch --track main origin/main
if: ${{ github.event_name == 'pull_request' }}

- run: pnpm nx affected -t lint
- run: pnpm nx affected -t test
- run: pnpm nx affected -t build
- run: pnpm nx affected -t ${{ matrix.action }}

0 comments on commit c2d2a20

Please sign in to comment.