mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-14 09:11:54 +08:00
42 lines
734 B
YAML
42 lines
734 B
YAML
name: 🛠️ Check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
svelte-check:
|
|
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
|
|
test:
|
|
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 Vitest
|
|
run: npm run test
|