-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 809 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (28 loc) · 809 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
name: CI
# Runs on every pull request and on main: buf lint and format, a check that
# gen/go and gen/methods.json are what proto/ generates, then the tests of
# both Go modules. `make tools` installs the pinned generator versions, so a
# stale tree here means a contributor forgot `make generate`.
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version-file: gen/go/go.mod
cache-dependency-path: |
gen/go/go.sum
tools/go.sum
- name: Install the pinned generators
run: make tools
- run: make check