Skip to content

Commit 1310351

Browse files
authored
Merge pull request #22 from PostHog/ci/add-test-workflow
Add CI workflow for running tests
2 parents 2681e9f + 6bf5dbb commit 1310351

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Go
23+
uses: actions/setup-go@v5
24+
with:
25+
go-version-file: go.mod
26+
27+
- name: Run unit tests
28+
run: go test -v ./server/... ./transpiler/...
29+
30+
- name: Build
31+
run: go build -o duckgres .

0 commit comments

Comments
 (0)