-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (44 loc) · 1.21 KB
/
check-njs.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
54
55
name: check-njs
# only when something on "njs" dir has changed
on:
push:
paths:
- 'bin/njs/**'
jobs:
check-njs:
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: bin/njs
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Cache Node modules
id: cache-node-modules
uses: actions/[email protected]
with:
path: njs/node_modules
key: ${{ env.preffix }}-node-modules-${{ hashFiles('./bin/njs/package-lock.json') }}
restore-keys: |
${{ env.preffix }}-node-modules-
${{ env.preffix }}-
env:
preffix: os-${{ runner.os }}
- name: Install dependencies
run: npm install
if: steps.cache-node-modules.outputs.cache-hit != 'true'
- name: Test symlink
run: make
- name: Root directory list (post-symlink)
run: ls -lash ..
- name: Test unlink
run: make clean
- name: Root directory list (post unlink)
run: ls -lash ..