1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-04 10:43:47 +00:00

Add experimental Nx CI workflow

- Add .github/workflows/nx.yml to run nx affected on PRs
- Tests build, lint, and test targets for changed libraries
- Uses nx-set-shas to calculate affected projects
- Prevents regression of package.json path bugs caught in Phase 2

Completes Phase 3: Update CI to build for Nx
From: Fix Nx Library Paths systematic bug resolution
This commit is contained in:
addisonbeck
2025-09-11 13:50:10 -04:00
parent 51bf0baba9
commit 8aefb52458

19
.github/workflows/nx.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Experimental Nx CI
on:
pull_request:
types: [opened, synchronize]
jobs:
nx-experiment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20
cache: 'npm'
- run: npm ci
- uses: nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1 # v4.3.3
- run: npx nx affected -t build lint test