feat: Angular 19 support #10
This file contains 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: pr-checks | |
on: | |
pull_request: | |
permissions: | |
actions: read | |
contents: read | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Restore cached npm dependencies | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
node_modules | |
key: npm-dependencies-${{ hashFiles('pnpm-lock.yaml') }} | |
- run: pnpm install --frozen-lockfile | |
- name: Cache npm dependencies | |
uses: actions/cache/save@v4 | |
with: | |
path: | | |
node_modules | |
key: npm-dependencies-${{ hashFiles('pnpm-lock.yaml') }} | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v4 | |
# This line is needed for nx affected to work when CI is running on a PR | |
- run: git branch --track main origin/main | |
- name: Install playwright browsers | |
run: pnpm playwright install --with-deps chromium | |
- run: pnpm nx affected -t lint build --parallel=3 # add test | |
- run: pnpm nx affected -t e2e-ci --parallel=1 |