Feature/angular 20 rework #410
Workflow file for this run
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [ opened, reopened, synchronize ] | |
permissions: | |
actions: read | |
contents: read | |
jobs: | |
build-and-run-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install bun, and dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v4 | |
with: | |
main-branch-name: 'main' | |
# This line is needed for nx affected to work when CI is running on a PR | |
- run: git branch --track main origin/main || exit 0 | |
- run: bunx nx affected -t lint test build --parallel=5 --exclude=docs |