mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-13 08:46:56 +08:00
46 lines
793 B
YAML
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
|