29 lines
630 B
YAML
29 lines
630 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
name: Checkout [main]
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup node
|
|
uses: actions/setup-node@v3.5.1
|
|
with:
|
|
node-version: 16.x
|
|
- run: npm install
|
|
- run: npm run format:check
|
|
- run: npm run type-check
|
|
- run: npm run test:ci
|
|
- run: npm run build
|
|
- name: "Check for unstaged changes"
|
|
run: |
|
|
git status --porcelain
|
|
git diff-index --quiet HEAD -- || exit 1
|