30 lines
637 B
YAML
30 lines
637 B
YAML
name: 'ci'
|
|
on:
|
|
push:
|
|
branches: '**'
|
|
pull_request:
|
|
branches: '**'
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [14.x]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
persist-credentials: false
|
|
- name: Setup node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: npm
|
|
- run: npm ci
|
|
- run: npm run format-check
|
|
- run: npm test
|
|
- run: npm run coverage
|
|
- name: Coveralls GitHub Action
|
|
uses: coverallsapp/github-action@v2
|