clients/.github/workflows/nx.yml
renovate[bot] aac0f0a6c1
[deps]: Update Minor github-actions updates (#18999)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-13 09:26:37 -04:00

43 lines
1.2 KiB
YAML

name: Experimental Nx CI
on:
pull_request:
types: [opened, synchronize]
permissions:
contents: read
jobs:
nx-experiment:
name: Run Nx Affected Tasks
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Get Node Version
id: retrieve-node-version
working-directory: ./
run: |
NODE_NVMRC=$(cat .nvmrc)
NODE_VERSION=${NODE_NVMRC/v/''}
echo "node_version=$NODE_VERSION" >> "$GITHUB_OUTPUT"
- name: Set up Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
node-version: ${{ env._NODE_VERSION }}
- name: Install dependencies
run: npm ci
- name: Set Nx SHAs for affected detection
uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4.4.0
- name: Run Nx affected tasks
continue-on-error: true
run: npx nx affected -t build lint test