-
Notifications
You must be signed in to change notification settings - Fork 64
45 lines (36 loc) · 928 Bytes
/
ci.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
name: CI
# N.B.: release.yml should be updated to match as necessary
permissions: {}
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
# Use new enough OS that has CGroupsv2 enabled (required by the integration tests)
runs-on: ubuntu-22.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.21
id: go
- name: Set up protoc
uses: pganalyze/setup-protoc@v3
with:
version: 28.2
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check out code
uses: actions/checkout@v4
with:
submodules: true
- name: Lint
run: |
test $(go fmt ./... | wc -l) -eq 0
- name: Run tests
run: |
make build OUTFILE=pganalyze-collector-linux-amd64
make test
DOCKER_BUILDKIT=1 make integration_test
shellcheck contrib/install.sh