Skip to content

Commit

Permalink
ci(.github): update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
waldronmatt committed Nov 3, 2023
1 parent 51f1477 commit f308c98
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 30 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
number-of-agents: 3

setup:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18]

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -50,17 +55,11 @@ jobs:
- name: Install dependencies
run: pnpm bootstrap:ci

- name: Nx Cloud - Main Job
uses: nrwl/ci/.github/workflows/[email protected]
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/[email protected]
run:
name: Build, Lint, Test using NX DTE
needs: setup
uses: nrwl/ci/.github/workflows/[email protected]
with:
number-of-agents: 3
parallel-commands-on-agents: |
npx nx affected -t build,lint,test --parallel=3
38 changes: 22 additions & 16 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
number-of-agents: 3

setup:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18]

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -51,15 +56,22 @@ jobs:
- name: Install dependencies
run: pnpm bootstrap:ci

- name: Nx Cloud - Main Job
uses: nrwl/ci/.github/workflows/[email protected]
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/[email protected]
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 }}"
Expand All @@ -76,9 +88,3 @@ jobs:
- name: Publish Packages
run: |
pnpm publish:ci
agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/[email protected]
with:
number-of-agents: 3

0 comments on commit f308c98

Please sign in to comment.