.github/workflows/ci.yml
name: CI
on:
push:
branches:
- main
- master
pull_request: {}
concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
- name: Install Dependencies
run: npm ci
- name: Lint
run: npm run lint
test:
name: "Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: npm
- name: Install Dependencies
run: npm ci
## Debug via SSH
#- name: Setup upterm session
# uses: lhotari/action-upterm@v1
# with:
# limit-access-to-users: jacobq
- name: Run Tests
run: npm test
- name: Run codecov
uses: codecov/codecov-action@v2