svgl/.github/workflows/ci.yml
2023-03-15 11:23:25 +00:00

46 lines
793 B
YAML

name: 🛠️ Check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm install
- name: Run linter
run: |
npm run lint
env:
SKIP_ENV_VALIDATION: true
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm install
- name: Run typecheck
run: npm run check