1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-27 06:43:41 +00:00
Files
browser/.github/workflows/nx.yml
renovate[bot] 66252d7c10 [deps]: Update Minor github-actions updates (#17621)
* [deps]: Update Minor github-actions updates

* Revert bump

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
Co-authored-by: Daniel James Smith <2670567+djsmith85@users.noreply.github.com>
2026-01-08 14:12:17 +00: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@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.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