From c67510f6d665c57ea10bff51dd0fe02f97c8cdeb Mon Sep 17 00:00:00 2001 From: Nick Novitski Date: Tue, 24 Jun 2025 18:18:26 -0700 Subject: [PATCH] Parallelize CI jobs --- .github/workflows/tests.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 65e1ccd8b..44e11e5c9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,20 +6,36 @@ on: pull_request: jobs: - build: + lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - uses: actions/setup-node@v4 with: cache: yarn node-version-file: package.json - run: yarn --immutable - run: yarn lint --max-warnings=0 + ctix: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + cache: yarn + node-version-file: package.json + - run: yarn --immutable - name: Check if barrels are up to date run: yarn ctix && [ -z "$(git status --porcelain)" ] + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + cache: yarn + node-version-file: package.json + - run: yarn --immutable - uses: SimenB/github-actions-cpu-cores@v2 id: cpu-cores - run: yarn test:all ---maxWorkers ${{ steps.cpu-cores.outputs.count }}