- Notifications
You must be signed in to change notification settings - Fork232
chore(repo): update nx to 22.0.0-beta.2#4815
Workflow file for this run
This file contains hidden or 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:CI Checks | |
on: | |
push: | |
branches: | |
-master | |
pull_request: | |
env: | |
NODE_VERSION:24 | |
JAVA_VERSION:21 | |
NX_CLOUD_ACCESS_TOKEN:${{ secrets.NX_CLOUD_READ_WRITE_TOKEN }} | |
NX_CLOUD_NO_TIMEOUTS:true | |
NX_PLUGIN_NO_TIMEOUTS:true | |
jobs: | |
main-linux: | |
name:Main Linux | |
runs-on:ubuntu-latest | |
env: | |
NX_CI_EXECUTION_ENV:'linux' | |
NX_VERBOSE_LOGGING:true | |
steps: | |
-name:Free Disk Space | |
uses:jlumbroso/free-disk-space@v1.3.1 | |
with: | |
tool-cache:false | |
android:false | |
dotnet:false | |
haskell:true | |
large-packages:false | |
docker-images:false | |
swap-storage:false | |
-uses:actions/checkout@v4 | |
with: | |
fetch-depth:0 | |
-uses:nrwl/nx-set-shas@v4 | |
with: | |
main-branch-name:'master' | |
-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 --auto-apply-fixes="*sync*" --distribute-on=".nx/workflows/linux-distribution-config.yaml" --with-env-vars="GIT_AUTHOR_EMAIL,GIT_AUTHOR_NAME,GIT_COMMITTER_EMAIL,GIT_COMMITTER_NAME,NX_CI_EXECUTION_ENV,NX_VERBOSE_LOGGING,JAVA_VERSION" | |
-name:Gradle Wrapper Validation | |
uses:gradle/actions/wrapper-validation@v3 | |
-name:Setup Java | |
uses:actions/setup-java@v3 | |
with: | |
distribution:zulu | |
java-version:${{ env.JAVA_VERSION }} | |
cache:gradle | |
-name:Ensure Nx Cloud Agents are configured correctly | |
run:yarn dlx nx-cloud validate --workflow-file=./.nx/workflows/agents.yaml | |
-uses:browser-actions/setup-chrome@v1 | |
-run:chrome --version | |
-name:Install NPM dependencies | |
run:yarn install --immutable | |
-name:Setup Gradle Dependencies | |
run:./gradlew dependencies | |
-name:Check formatting | |
run:| | |
yarn nx-cloud record -- yarn nx format:check --verbose | |
yarn nx-cloud record -- yarn nx run-many -t ktfmtFormat | |
-name:Ensure the workspace configuration is in sync | |
run:yarn nx-cloud record -- yarn nx sync:check | |
# - name: Run Nx Cloud conformance checks | |
# run: yarn nx-cloud record -- yarn nx-cloud conformance:check | |
# todo(cammisuli): disable verifyPlugin for now as its constantly failing on CI | |
# - run: yarn nx affected --targets=lint,test,build,e2e-ci,typecheck,verifyPlugin,telemetry-check --configuration=ci --exclude=nx-console --parallel=3 | |
-run:yarn nx affected --targets=lint,test,build,e2e-ci,typecheck,telemetry-check,buildPlugin --configuration=ci --exclude=nx-console --parallel=3 | |
timeout-minutes:60 | |
-run:npx nx-cloud fix-ci | |
if:failure() | |
# main-windows: | |
# name: Main Windows | |
# runs-on: windows-latest | |
# env: | |
# GIT_AUTHOR_EMAIL: test@test.com | |
# GIT_AUTHOR_NAME: Test | |
# GIT_COMMITTER_EMAIL: test@test.com | |
# GIT_COMMITTER_NAME: Test | |
# NX_CI_EXECUTION_ENV: 'windows' | |
# steps: | |
# - uses: actions/checkout@v4 | |
# with: | |
# fetch-depth: 0 | |
# - uses: nrwl/nx-set-shas@v4 | |
# with: | |
# main-branch-name: 'master' | |
# - 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=".nx/workflows/windows-distribution-config.yaml" --with-env-vars="GIT_AUTHOR_EMAIL,GIT_AUTHOR_NAME,GIT_COMMITTER_EMAIL,GIT_COMMITTER_NAME,JAVA_VERSION,NODE_OPTIONS" | |
# - uses: browser-actions/setup-chrome@v1 | |
# - name: Install NPM dependencies | |
# run: yarn install --immutable | |
# - name: Gradle Wrapper Validation | |
# uses: gradle/actions/wrapper-validation@v3 | |
# - name: Setup Java | |
# uses: actions/setup-java@v3 | |
# with: | |
# distribution: zulu | |
# java-version: ${{ env.JAVA_VERSION }} | |
# cache: gradle | |
# # There's no need to check formatting, linting & typecheck again on windows | |
# - run: yarn nx affected --targets="build,test,e2e-ci" --configuration=ci --exclude=nx-console --parallel=3 --verbose | |
# timeout-minutes: 60 | |
# env: | |
# NX_VERBOSE_LOGGING: true | |
# NODE_OPTIONS: --max-old-space-size=4096 |