-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 854 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
on:
push:
paths:
- "**.json"
- "**.js"
- "**.jsx"
- "**.mjs"
- "**.ts"
- "**.tsx"
- "**.astro"
- "**.lockb"
- ".github/workflows/test.yml"
jobs:
deploy:
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
name: setup bun
with:
bun-version: 1.0.22
- name: install dependencies
run: bun install
- name: setup data fixture
run: mkdir -p site/src/generated && cp site/src/lib/server/__fixtures__/data.json site/src/generated/data.json
- name: run astro checks
run: bun run astro check
- name: run type check
run: bun run types
- name: run schema scheck
run: bun run schemas
- name: run unit tests
run: bun run test