Skip to content

Linting.

Linting. #84

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
branches:
- '**'
types:
- opened
- synchronize
- reopened
- ready_for_review
jobs:
check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run lint
test:
if: github.event.pull_request.draft == false
needs: check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18]
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run test
- uses: codecov/codecov-action@v3
with:
flags: node