-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.01 KB
/
ci.yml
File metadata and controls
48 lines (38 loc) · 1.01 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
name: ci
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: extractions/setup-just@v2
- uses: bufbuild/buf-action@v1
with:
setup_only: true
- name: Install Javy
run: |
curl -L https://github.com/bytecodealliance/javy/releases/download/v8.0.0/javy-x86_64-linux-v8.0.0.gz -o javy.gz
gunzip javy.gz
chmod +x javy
sudo mv javy /usr/local/bin/javy
- uses: sqlc-dev/setup-sqlc@v4
with:
sqlc-version: "1.30.0"
- name: Install dependencies
run: bun install
- name: Lint
run: just lint
- name: Run unit tests
run: just test
- name: Build WASM plugin
run: just plugin-wasm
- name: Verify generated examples match
run: sqlc -f sqlc.dev.yaml diff
working-directory: examples