-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (51 loc) · 1.87 KB
/
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
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: CI
on: [push]
env:
CI: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Available OS's: https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
# Comment out MacOS, as it's very slow at the moment, and not really
# critical.
# os: [ubuntu-20.04, windows-2019, macos-10.15]
os: [ubuntu-20.04, windows-2019]
node-version: [18.x, 16.x]
steps:
- uses: actions/[email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/[email protected]
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-node${{ runner.node-version }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# We generate our vocab bundle from all the vocabs at runtime,
# since normally vocab bundles are expected to be published somewhere,
# but in our case, we want to keep everything together for now.
- run: npx @inrupt/artifact-generator generate --vocabListFile "resources/Vocab/vocab-etl-tutorial-bundle-all.yml" --outputDirectory "./src/InruptTooling/Vocab/EtlTutorial" --noPrompt --publish npmInstallAndBuild
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm run check-licenses
- run: npm audit --audit-level=moderate
- run: npm test
- run: npx package-check
- name: Archive code coverage results
uses: actions/[email protected]
continue-on-error: true
with:
name: code-coverage-report
path: coverage
- name: Archive production artifacts
uses: actions/[email protected]
continue-on-error: true
with:
name: dist
path: dist