Skip to content

Commit

Permalink
ci(.github): add dte support to nx cicd cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
waldronmatt committed Nov 3, 2023
1 parent 45f3197 commit f39be2f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

jobs:
release:
agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/[email protected]
with:
number-of-agents: 3

pull:
runs-on: ubuntu-22.04
strategy:
matrix:
Expand All @@ -21,9 +27,6 @@ jobs:
with:
fetch-depth: 0

- name: NX Affected
uses: nrwl/nx-set-shas@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -53,14 +56,12 @@ jobs:
- name: Install dependencies
run: pnpm bootstrap:ci

- name: Build
run: pnpm build:ci

- name: Lint Monorepo
run: pnpm lint:mr

- name: Lint
run: pnpm lint:ci
- name: NX Affected
uses: nrwl/nx-set-shas@v4

- name: Test
run: pnpm test:ci
- name: Build, Lint, Test using Distributed Task Execution
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
29 changes: 15 additions & 14 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

jobs:
release:
agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/[email protected]
with:
number-of-agents: 3

push:
runs-on: ubuntu-22.04
strategy:
matrix:
Expand All @@ -22,9 +28,6 @@ jobs:
with:
fetch-depth: 0

- name: NX Affected
uses: nrwl/nx-set-shas@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -54,17 +57,15 @@ jobs:
- name: Install dependencies
run: pnpm bootstrap:ci

- name: Build
run: pnpm build:ci

- name: Lint Monorepo
run: pnpm lint:mr

- name: Lint
run: pnpm lint:ci
- name: NX Affected
uses: nrwl/nx-set-shas@v4

- name: Test
run: pnpm test:ci
- name: Build, Lint, Test using Distributed Task Execution
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
- name: Config Git User
run: |
Expand Down

0 comments on commit f39be2f

Please sign in to comment.