db-vendo-client/.github/workflows/test.yml

58 lines
1.3 KiB
YAML
Raw Normal View History

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
2022-11-21 15:21:33 +01:00
uses: actions/checkout@v3
2021-01-28 15:11:35 +01:00
- name: setup Node.js v${{ matrix.node-version }}
2022-11-21 15:21:33 +01:00
uses: actions/setup-node@v3
2021-01-28 15:11:35 +01:00
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
2022-11-21 15:21:33 +01:00
uses: actions/checkout@v3
2021-01-28 15:11:35 +01:00
- name: setup Node.js v${{ matrix.node-version }}
2022-11-21 15:21:33 +01:00
uses: actions/setup-node@v3
2021-01-28 15:11:35 +01:00
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
2022-11-21 15:21:33 +01:00
uses: actions/checkout@v3
2021-01-28 15:11:35 +01:00
- name: setup Node.js v${{ matrix.node-version }}
2022-11-21 15:21:33 +01:00
uses: actions/setup-node@v3
2021-01-28 15:11:35 +01:00
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
- run: npm run test-e2e