28 lines
697 B
YAML
28 lines
697 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
- 'renovate/**'
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
|
|
fetch-depth: 0
|
|
- uses: nrwl/nx-set-shas@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
cache: 'npm'
|
|
- run: npm ci
|
|
- run: npx nx affected --target=lint --parallel=3
|
|
- run: npx nx affected --target=build --parallel=3 --ci
|
|
- run: npx nx affected --target=test --parallel=3 --ci --code-coverage
|