Skip to content

2.14.0

2.14.0 #499

Workflow file for this run

name: tests # runs unit and integration tests
on:
push:
branches-ignore: [main]
workflow_dispatch:
jobs:
linux-tests:
strategy:
matrix:
node: [16, 18, 20]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: npm
- name: Cache node modules
id: cache-nodemodules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- run: npm install snyk --legacy-peer-deps
- run: npm run snyk:auth ${{ secrets.SNYK_TOKEN }}
- run: npm install --legacy-peer-deps
if: ${{ steps.cache-nodemodules.outputs.cache-hit != 'true' }}
- run: npm run build
- name: Unit tests
run: npm test
- run: cd testIntegration
- name: Integration tests
run: npm run test:ci