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
|
2023-01-30 02:38:45 +01:00
|
|
|
uses: actions/checkout@v3
|
2020-07-05 15:17:34 +02:00
|
|
|
|
|
|
|
- name: Setup Node.js
|
2023-01-30 02:38:45 +01:00
|
|
|
uses: actions/setup-node@v3
|
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
|
|
|
|
|
2023-09-28 02:50:43 +02:00
|
|
|
- name: Type-check
|
|
|
|
run: npm run type-check
|
|
|
|
|
2020-07-05 15:17:34 +02:00
|
|
|
- name: Lint
|
|
|
|
run: npm run lint
|
|
|
|
|
|
|
|
- name: Test
|
2023-01-31 02:37:41 +01:00
|
|
|
run: npm test -- --coverage
|
2020-07-05 15:43:26 +02:00
|
|
|
|
2023-10-08 01:23:03 +02:00
|
|
|
- name: Format-check
|
|
|
|
run: npm run format -- --check
|
|
|
|
|
2021-11-05 18:39:36 +01:00
|
|
|
- name: Build
|
|
|
|
run: npm run build
|
|
|
|
|
2020-07-05 15:43:26 +02:00
|
|
|
- name: Coverage
|
2023-01-30 02:38:45 +01:00
|
|
|
uses: codecov/codecov-action@v3
|