-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (36 loc) · 929 Bytes
/
ci.yaml
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
name: ci
on: push
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.21.x, 1.22.x, 1.23.x]
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup-go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: setup-buf
uses: bufbuild/buf-setup-action@v1
- name: cache
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-connect-ci-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-connect-ci-
- name: generate
run: make generate && make checkgenerate
- name: test
env:
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
run: make test
- name: lint
if: matrix.go-version == '1.23.x'
run: make lint