2020-07-05 15:17:34 +02:00
|
|
|
name: Main
|
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-and-release:
|
2021-11-05 18:39:36 +01:00
|
|
|
name: Test and build
|
2020-07-05 15:17:34 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
2022-01-30 23:51:27 +01:00
|
|
|
uses: actions/setup-node@v2
|
2020-07-05 15:17:34 +02:00
|
|
|
with:
|
2022-01-30 23:51:27 +01:00
|
|
|
node-version: 16
|
2020-07-05 15:17:34 +02:00
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
run: npm run lint
|
|
|
|
|
|
|
|
- name: Test
|
2020-07-05 17:17:27 +02:00
|
|
|
run: npm test
|
2020-07-05 15:43:26 +02:00
|
|
|
|
2021-11-05 18:39:36 +01:00
|
|
|
- name: Build
|
|
|
|
run: npm run build
|
|
|
|
|
2020-07-05 15:43:26 +02:00
|
|
|
- name: Coverage
|
2022-01-30 23:51:27 +01:00
|
|
|
uses: codecov/codecov-action@v2
|