Skip to content

Instantly share code, notes, and snippets.

@lydemann

lydemann/dte.yml Secret

Last active September 21, 2022 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lydemann/f57da4369d214213a32416389b8f2346 to your computer and use it in GitHub Desktop.
Save lydemann/f57da4369d214213a32416389b8f2346 to your computer and use it in GitHub Desktop.
name: CI
env:
# Node.js
NODE_OPTIONS: --max-old-space-size=6144
on:
push:
branches:
- main
pull_request: {}
jobs:
main:
name: Nx cloud - Main Job
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.6
with:
number-of-agents: 8
init-commands: |
yarn nx-cloud start-ci-run --stop-agents-after="e2e" --agent-count=8
parallel-commands: |
yarn nx-cloud record -- yarn nx workspace-lint
yarn nx-cloud record -- yarn nx format:check
parallel-commands-on-agents: |
yarn nx affected --target=lint --parallel=2
yarn nx affected --target=test --parallel-2 --ci --code-coverage
yarn nx affected --target=build --parallel=2
yarn nx affected --target=e2e --parallel=1
agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.6
with:
number-of-agents: 8
@LayZeeDK
Copy link

LayZeeDK commented Sep 21, 2022

@lydemann
issue: correct to nx-cloud start-ci-run

        yarn nx-cloud start-ci-run --stop-agents-after="build" --agent-count=8

@LayZeeDK
Copy link

@lydemann
issue: change end task to e2e since we introduced it

        yarn nx-cloud start-ci-run --stop-agents-after="e2e" --agent-count=8

@lydemann
Copy link
Author

Updated @LayZeeDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment