31 lines
530 B
YAML
31 lines
530 B
YAML
name: Main
|
|
on: push
|
|
|
|
jobs:
|
|
test-and-release:
|
|
name: Test and build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
|
|
- name: Install
|
|
run: npm ci
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
|
|
- name: Test
|
|
run: npm test -- --coverage
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Coverage
|
|
uses: codecov/codecov-action@v3
|