Update to go1.21 and golangci 1.60.0, test with go1.23 (#104) #227
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |