From f308c98b2a97833d3549fad0d783bbd9fcacaf16 Mon Sep 17 00:00:00 2001 From: waldronmatt Date: Fri, 3 Nov 2023 16:38:40 -0400 Subject: [PATCH] ci(.github): update configs --- .github/workflows/pull.yml | 27 +++++++++++++-------------- .github/workflows/push.yml | 38 ++++++++++++++++++++++---------------- 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 80b99572..5de456f4 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -9,12 +9,17 @@ env: NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} jobs: - pull: + agents: + name: Nx Cloud - Agents + uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0 + with: + number-of-agents: 3 + + setup: runs-on: ubuntu-22.04 strategy: matrix: node-version: [18] - steps: - name: Checkout uses: actions/checkout@v4 @@ -50,17 +55,11 @@ jobs: - name: Install dependencies run: pnpm bootstrap:ci - - name: Nx Cloud - Main Job - uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0 - with: - number-of-agents: 3 - parallel-commands: | - npx nx-cloud record -- npx nx format:check - parallel-commands-on-agents: | - npx nx affected -t lint,test,build --parallel=3 - - agents: - name: Nx Cloud - Agents - uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0 + run: + name: Build, Lint, Test using NX DTE + needs: setup + uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0 with: number-of-agents: 3 + parallel-commands-on-agents: | + npx nx affected -t build,lint,test --parallel=3 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 02e0a310..d9f082b1 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -10,12 +10,17 @@ env: NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} jobs: - push: + agents: + name: Nx Cloud - Agents + uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0 + with: + number-of-agents: 3 + + setup: runs-on: ubuntu-22.04 strategy: matrix: node-version: [18] - steps: - name: Checkout uses: actions/checkout@v4 @@ -51,15 +56,22 @@ jobs: - name: Install dependencies run: pnpm bootstrap:ci - - name: Nx Cloud - Main Job - uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0 - with: - number-of-agents: 3 - parallel-commands: | - npx nx-cloud record -- npx nx format:check - parallel-commands-on-agents: | - npx nx affected -t lint,test,build --parallel=3 + run: + name: Build, Lint, Test using NX DTE + needs: setup + uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0 + with: + number-of-agents: 3 + parallel-commands-on-agents: | + npx nx affected -t build,lint,test --parallel=3 + publish: + needs: run + runs-on: ubuntu-22.04 + strategy: + matrix: + node-version: [18] + steps: - name: Config Git User run: | git config --global user.name "${{ github.actor }}" @@ -76,9 +88,3 @@ jobs: - name: Publish Packages run: | pnpm publish:ci - - agents: - name: Nx Cloud - Agents - uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0 - with: - number-of-agents: 3