Revert "chore(repo): use new launch template syntax (#20169)" (#20197)

This commit is contained in:
Jason Jean 2023-11-10 18:19:02 -05:00 committed by GitHub
parent 17990db65b
commit e4cb6c151b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 49 deletions

View File

@ -88,7 +88,7 @@ jobs:
NX_CI_EXECUTION_ENV: 'linux'
steps:
- checkout
- run: npx nx-cloud@next start-ci-run --distributes-on="8 linux-medium" --stop-agents-after="e2e"
- run: npx nx-cloud@next start-ci-run --stop-agents-after="e2e"
- run:
command: |
sudo apt-get update

View File

@ -1,6 +1,5 @@
launch-templates:
linux-medium:
env:
parallelism: 8
env:
CI: 'true'
GIT_AUTHOR_EMAIL: test@test.com
GIT_AUTHOR_NAME: Test
@ -15,7 +14,10 @@ launch-templates:
NX_E2E_RUN_E2E: 'true'
NPM_CONFIG_PREFIX: '/home/workflows/.npm-global'
NX_CLOUD_ACCESS_TOKEN: '{{secrets.NX_CLOUD_ACCESS_TOKEN}}'
init-steps:
on:
- events:
- CREATE_RUN_GROUP
steps:
- name: Checkout
uses: 'nrwl/nx-cloud-workflows/v1.1/workflow-steps/checkout/main.yaml'
@ -51,5 +53,7 @@ launch-templates:
git config --global user.email test@test.com
git config --global user.name "Test Test"
- name: Load Cargo Env
script: source "$HOME/.cargo/env"
- name: Run Agent
script: |
source "$HOME/.cargo/env"
npx nx-cloud start-agent