-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (46 loc) · 1.55 KB
/
pr-check.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 'build-test'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- master
- 'releases/*'
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
timeout-minutes: 30
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 20
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: node -v
- run: npm -v
- run: python --version
- name: Cache node modules
id: cache-npm
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-build-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-
- if: ${{ steps.cache-npm.outputs.cache-hit == 'false' }}
name: List the state of node modules
continue-on-error: true
run: npm list
- run: npm install
- run: npm run compile
- run: npm link
- run: npm run generate
- run: npm run dockerBuild
- run: npm test