Skip to content

Commit

Permalink
chore(repo): reorder ci steps to start up agents faster (#2397)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless authored Feb 10, 2025
1 parent f26afdc commit 9e5385a
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/ci_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ jobs:
- run: git branch --track master origin/master
if: ${{ github.event_name == 'pull_request' }}

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
check-latest: true
cache: yarn

- name: Start the Nx Cloud CI Run
run: |
yarn dlx nx-cloud start-ci-run --distribute-on="4 linux-medium-plus-js" --with-env-vars="GIT_AUTHOR_EMAIL,GIT_AUTHOR_NAME,GIT_COMMITTER_EMAIL,GIT_COMMITTER_NAME,NX_CI_EXECUTION_ENV,NX_VERBOSE_LOGGING"
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3

Expand All @@ -41,21 +52,10 @@ jobs:
- name: Ensure Nx Cloud Agents are configured correctly
run: yarn dlx nx-cloud validate --workflow-file=./.nx/workflows/agents.yaml

- name: Start the Nx Cloud CI Run
run: |
yarn dlx nx-cloud start-ci-run --distribute-on="4 linux-medium-plus-js" --with-env-vars="GIT_AUTHOR_EMAIL,GIT_AUTHOR_NAME,GIT_COMMITTER_EMAIL,GIT_COMMITTER_NAME,NX_CI_EXECUTION_ENV,NX_VERBOSE_LOGGING"
- uses: browser-actions/setup-chrome@v1

- run: chrome --version

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
check-latest: true
cache: yarn

- name: Install NPM dependencies
run: yarn install --immutable

Expand Down Expand Up @@ -99,19 +99,19 @@ jobs:
- run: git branch --track master origin/master
if: ${{ github.event_name == 'pull_request' }}

- name: Start the Nx Cloud CI Run
run: |
yarn dlx nx-cloud start-ci-run --distribute-on="4 windows-medium-js" --with-env-vars="GIT_AUTHOR_EMAIL,GIT_AUTHOR_NAME,GIT_COMMITTER_EMAIL,GIT_COMMITTER_NAME,NX_CI_EXECUTION_ENV"
- uses: browser-actions/setup-chrome@v1

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
check-latest: true
cache: yarn

- name: Start the Nx Cloud CI Run
run: |
yarn dlx nx-cloud start-ci-run --distribute-on="4 windows-medium-js" --with-env-vars="GIT_AUTHOR_EMAIL,GIT_AUTHOR_NAME,GIT_COMMITTER_EMAIL,GIT_COMMITTER_NAME,NX_CI_EXECUTION_ENV"
- uses: browser-actions/setup-chrome@v1

- name: Install NPM dependencies
run: yarn install --immutable

Expand Down

0 comments on commit 9e5385a

Please sign in to comment.