-
Notifications
You must be signed in to change notification settings - Fork 11
31 lines (31 loc) · 983 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: CI
on:
pull_request:
branches:
- master
types:
- opened
- synchronize
jobs:
run-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Npm install
uses: ./.github/actions
# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track main origin/master
- name: Test and build
run: npx nx affected -t lint test build --parallel=3 --exclude='json-api-front,json-api-server,json-api-server-e2e,shared-utils,json-shared-type,database'
- name: Cache npm dependencies
id: cache-dependencies-save
uses: actions/cache/save@v4
with:
path: |
.nx
.angular
key: ${{ runner.os }}-npm-dependencies-${{ hashFiles('package-lock.json') }}
# - run: npm nx affected -t e2e-ci --parallel=1
# - run: npm nx affected -t deploy --no-agents