Skip to content

chore: wip

chore: wip #23064

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: '${{ github.workflow }} - ${{ github.head_ref || github.ref }}'
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
PRIMARY_NODE_VERSION: 20
# Value will be controlled via GitHub environment (called "main") secret, will be read-write for main branch, read-only for other branches
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
# This increases the verbosity of the logs for everything, including Nx Cloud, but will hopefully surface more info about recent lint failures
NX_VERBOSE_LOGGING: false
defaults:
run:
shell: bash
permissions:
actions: read
contents: read
jobs:
main:
environment: ${{ (github.repository == 'typescript-eslint/typescript-eslint' && github.ref == 'refs/heads/main') && 'main' || '' }} # Have to specify per job
runs-on: ubuntu-latest
env:
NX_CI_EXECUTION_ENV: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
with:
filter: tree:0
fetch-depth: 0
- run: corepack enable
# Enable task distribution via Nx Cloud
- run: yarn dlx nx-cloud start-ci-run --distribute-on="10 linux-medium-js" --stop-agents-after="build"
- uses: actions/setup-node@v4
with:
node-version: ${{ env.PRIMARY_NODE_VERSION }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- run: yarn nx affected -t build