svgl/.github/workflows/ci.yml

44 lines
760 B
YAML
Raw Normal View History

2023-03-15 19:23:25 +08:00
name: 🛠️ Check
on:
push:
branches:
- main
2023-12-12 09:03:06 +08:00
- next
2023-03-15 19:23:25 +08:00
pull_request:
branches:
- main
2023-12-12 09:03:06 +08:00
- next
2023-03-15 19:23:25 +08:00
jobs:
2023-03-20 19:21:57 +08:00
svelte-check:
2023-03-15 19:23:25 +08:00
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
2023-04-14 19:37:45 +08:00
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