-
Notifications
You must be signed in to change notification settings - Fork 13
67 lines (58 loc) · 1.42 KB
/
tests.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
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
61
62
63
64
65
66
67
name: Tests
on:
push:
branches:
- master
- ci
pull_request:
branches:
- '**'
schedule:
- cron: '28 0 * * *'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: ["1.22", "1.23"]
edgedb-version: [stable, nightly]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Lint
run: |
go install
make lint && make gendocs-lint
make gen
if [[ "$(git status --porcelain)" != "" ]]; then
echo "Generated code is out of sync. Run make gen."
exit 1
fi
- name: Build
run: |
go build .
- name: Setup WSL
if: ${{ startswith(matrix.os, 'windows') }}
uses: vampire/setup-wsl@v1
with:
wsl-shell-user: edgedb
additional-packages:
ca-certificates
curl
- name: Install EdgeDB
uses: edgedb/setup-edgedb@v1
with:
server-version: ${{ matrix.edgedb-version }}
- name: Test
run: |
make test
- name: Exercise Benchmarks
run: |
# run micro benchmarks to be sure they still work
make bench