28 lines
496 B
YAML
28 lines
496 B
YAML
name: Main
|
|
on: push
|
|
|
|
jobs:
|
|
test-and-release:
|
|
name: Test and release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12
|
|
|
|
- name: Install
|
|
run: npm ci
|
|
|
|
- name: Lint
|
|
run: npm run lint
|
|
|
|
- name: Test
|
|
run: npm test -- --coverage-report=json
|
|
|
|
- name: Coverage
|
|
uses: codecov/codecov-action@v1
|