json-theme-even-fork/.github/workflows/main.yml

37 lines
655 B
YAML
Raw Permalink Normal View History

2020-07-05 15:17:34 +02:00
name: Main
on: push
jobs:
test-and-release:
name: Test and build
2020-07-05 15:17:34 +02:00
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
2020-07-05 15:17:34 +02:00
- name: Setup Node.js
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
- 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
- name: Format-check
run: npm run format -- --check
- name: Build
run: npm run build
- name: Coverage
uses: codecov/codecov-action@v3