-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (55 loc) · 1.51 KB
/
Copy pathci.yml
File metadata and controls
60 lines (55 loc) · 1.51 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI
on:
push:
branches: [main, develop]
paths-ignore:
- "**.md"
- "docs/**"
- LICENSE
pull_request:
branches: [main, develop]
paths-ignore:
- "**.md"
- "docs/**"
- LICENSE
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup-node
- run: vp check
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup-node
- run: vp test
drizzle-check:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup-node
- run: npm run db:generate
- name: Check for uncommitted schema changes
run: |
if [ -n "$(git status --porcelain drizzle/)" ]; then
echo "::error::Drizzle schema and generated files are out of sync. Run 'npm run db:generate' and commit the result."
git add -N drizzle/
git diff drizzle/
exit 1
fi
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup-node
- run: vp pack