From c2d2a203978d0a19156af4a274f26fea51010727 Mon Sep 17 00:00:00 2001 From: Jai A Date: Wed, 3 Jul 2024 21:06:04 -0700 Subject: [PATCH] use matrix for better perf --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 598fc3fae..8f43c9363 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,9 @@ on: jobs: main: + strategy: + matrix: + action: ['lint', 'test', 'build'] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -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 }}