feat: allow retrieving platform info using API key #133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-cloud-nx | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
main: | |
name: Nx Cloud - Main Job | |
secrets: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
uses: nrwl/ci/.github/workflows/[email protected] | |
with: | |
number-of-agents: 3 | |
init-commands: | | |
npx nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3 | |
parallel-commands-on-agents: | | |
npx nx affected --target=lint --parallel=3 | |
npx nx affected --target=build -c production --parallel=3 | |
npx nx run-many --target=test --projects=engine,shared,server-api --parallel=3 | |
agents: | |
name: Nx Cloud - Agents | |
secrets: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
uses: nrwl/ci/.github/workflows/[email protected] | |
with: | |
number-of-agents: 3 |