2021-01-28 15:11:35 +01:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
unit-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-12-29 16:56:19 +01:00
|
|
|
node-version: [16.x, 18.x]
|
2021-01-28 15:11:35 +01:00
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: setup Node.js v${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- run: npm install
|
|
|
|
|
|
|
|
- run: npm run lint
|
|
|
|
- run: npm run test-unit
|
|
|
|
|
|
|
|
integration-tests:
|
|
|
|
needs: unit-tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-12-29 16:56:19 +01:00
|
|
|
node-version: [16.x, 18.x]
|
2021-01-28 15:11:35 +01:00
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: setup Node.js v${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- run: npm install
|
|
|
|
|
|
|
|
- run: npm run lint
|
|
|
|
- run: npm run test-integration
|
|
|
|
|
|
|
|
e2e-tests:
|
|
|
|
needs: integration-tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-12-29 16:56:19 +01:00
|
|
|
node-version: [16.x]
|
2021-01-28 15:11:35 +01:00
|
|
|
steps:
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: setup Node.js v${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- run: npm install
|
|
|
|
|
|
|
|
- run: npm run lint
|
|
|
|
- run: npm run test-e2e
|