Skip to content

update CI matrix and action versions #191

update CI matrix and action versions

update CI matrix and action versions #191

Workflow file for this run

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
os: [ubuntu-latest, windows-latest]
node-version: [20.x, 18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v3
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/upload-artifact@v4
continue-on-error: true
with:
name: code-coverage-report
path: coverage
- name: Archive production artifacts
uses: actions/upload-artifact@v4
continue-on-error: true
with:
name: dist
path: dist