-
Notifications
You must be signed in to change notification settings - Fork 714
62 lines (59 loc) · 1.39 KB
/
ci.yml
File metadata and controls
62 lines (59 loc) · 1.39 KB
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
name: ci
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
goversion: ["1.20", "1.21", "1.22", "1.23", "1.24", "1.25", "1.26"]
steps:
- uses: docker/setup-buildx-action@v3
- uses: docker/bake-action@v7
with:
targets: build-all
env:
GO_VERSION: ${{ matrix.goversion }}
test:
runs-on: ubuntu-24.04
steps:
- uses: docker/setup-buildx-action@v3
- uses: docker/bake-action@v7
with:
targets: test
env:
COVER_FILENAME: "cover.out"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
disable_file_fixes: true
files: ./cover.out
token: ${{ secrets.CODECOV_TOKEN }}
test-os:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- run: go test -v ./...
lint:
runs-on: ubuntu-24.04
steps:
- uses: docker/setup-buildx-action@v3
- uses: docker/bake-action@v7
with:
targets: lint-all