🛠️ Initial workflow config.

This commit is contained in:
pheralb 2023-03-15 11:23:25 +00:00
parent 41d98985b4
commit e33caf37aa

45
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,45 @@
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