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
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2021-03-03 19:42:34 +01:00
|
|
|
node-version: 14
|
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
|
|
|
|
uses: codecov/codecov-action@v1
|