forked from hpcc-systems/HPCC-Platform
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (53 loc) · 1.41 KB
/
build-test-eclwatch.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
56
name: Build Test ECL Watch
on:
pull_request:
branches:
- "master"
- "candidate-*"
- "!candidate-7.6.*"
- "!candidate-7.4.*"
- "!candidate-7.2.*"
- "!candidate-7.0.*"
- "!candidate-6.*"
jobs:
pre_job:
runs-on: ubuntu-20.04
outputs:
eclwatch: ${{ steps.skip_check.outputs.eclwatch }}
steps:
- id: skip_check
uses: hpcc-systems/github-actions/changed-modules@main
with:
github_token: ${{ github.token }}
build:
strategy:
matrix:
node: ["18", "16"]
fail-fast: false
name: "Check eclwatch and npm"
needs: pre_job
if: ${{ needs.pre_job.outputs.eclwatch }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Cache node modules
uses: actions/cache@v2
with:
path: ./esp/src/node_modules
key: npm-deps-${{ hashFiles('./esp/src/package-lock.json') }}
restore-keys: |
npm-deps-${{ hashFiles('./esp/src/package-lock.json') }}
- name: Install Dependencies
working-directory: ./esp/src
run: npm ci
- name: Build
working-directory: ./esp/src
run: npm run build
- name: Test
working-directory: ./esp/src
run: npm run test