-
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 753 Bytes
/
test.yml
File metadata and controls
36 lines (33 loc) · 753 Bytes
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
name: Build and test
on:
push:
branches:
- main
pull_request:
branches:
- "**"
jobs:
lint_and_typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
- name: Use Node.js
uses: actions/setup-node@v6.4.0
with:
node-version-file: .nvmrc
- name: Install pnpm
run: corepack enable pnpm
- name: Install dependencies
run: pnpm i
- name: lint
run: pnpm lint
- name: build
run: pnpm build
- name: ensure no outstanding migrations
run: |
pnpm db:generate && \
if [ -z "$(git status --porcelain)" ]; then \
exit 0; \
else \
exit 1; \
fi