File tree 2 files changed +92
-2
lines changed
2 files changed +92
-2
lines changed Original file line number Diff line number Diff line change 14
14
jobs :
15
15
go :
16
16
timeout-minutes : 5
17
- name : " go | ${{ matrix.goos }} | ${{ matrix.canary }}"
17
+ name : " ${{ matrix.goos }} | ${{ matrix.canary }}"
18
18
runs-on : " ${{ matrix.os }}"
19
19
defaults :
20
20
run :
42
42
- name : Set GO env
43
43
run : |
44
44
# If canary is specified, get the latest available golang pre-release instead of the major version
45
- if [ "$canary" != "" ]; then
45
+ if [ "${{ matrix. canary }} " != "" ]; then
46
46
. ./hack/build-integration-canary.sh
47
47
canary::golang::latest
48
48
fi
Original file line number Diff line number Diff line change
1
+ name : tigron
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - ' release/**'
8
+ pull_request :
9
+ paths : ' mod/tigron/**'
10
+
11
+ env :
12
+ GO_VERSION : 1.24.x
13
+ GOTOOLCHAIN : local
14
+
15
+ jobs :
16
+ lint :
17
+ timeout-minutes : 10
18
+ name : " ${{ matrix.goos }} ${{ matrix.os }} | go ${{ matrix.canary }}"
19
+ runs-on : ${{ matrix.os }}
20
+ defaults :
21
+ run :
22
+ shell : bash
23
+ strategy :
24
+ matrix :
25
+ include :
26
+ - os : ubuntu-24.04
27
+ - os : macos-15
28
+ - os : windows-2022
29
+ - os : ubuntu-24.04
30
+ goos : freebsd
31
+ - os : ubuntu-24.04
32
+ canary : go-canary
33
+ steps :
34
+ - name : " Checkout project"
35
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36
+ with :
37
+ fetch-depth : 100
38
+ - name : " Set GO env"
39
+ run : |
40
+ # If canary is specified, get the latest available golang pre-release instead of the major version
41
+ if [ "${{ matrix.canary }}" != "" ]; then
42
+ . ./hack/build-integration-canary.sh
43
+ canary::golang::latest
44
+ fi
45
+ - name : " Install go"
46
+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
47
+ with :
48
+ go-version : ${{ env.GO_VERSION }}
49
+ check-latest : true
50
+ - name : " Install tools"
51
+ run : |
52
+ cd mod/tigron
53
+ echo "::group:: make install-dev-tools"
54
+ make install-dev-tools
55
+ if [ "$RUNNER_OS" == macOS ]; then
56
+ brew install yamllint shellcheck
57
+ fi
58
+ echo "::endgroup::"
59
+ - name : " lint"
60
+ env :
61
+ NO_COLOR : true
62
+ run : |
63
+ if [ "$RUNNER_OS" != "Linux" ] || [ "${{ matrix.goos }}" != "" ]; then
64
+ echo "It is not necessary to run the linter on this platform (${{ env.RUNNER_OS }} ${{ matrix.goos }})"
65
+ exit
66
+ fi
67
+
68
+ echo "::group:: lint"
69
+ cd mod/tigron
70
+ export LINT_COMMIT_RANGE="$(jq -r '.after + "..HEAD"' ${GITHUB_EVENT_PATH})"
71
+ make lint
72
+ echo "::endgroup::"
73
+ - name : " test-unit"
74
+ run : |
75
+ echo "::group:: unit test"
76
+ cd mod/tigron
77
+ make test-unit
78
+ echo "::endgroup::"
79
+ - name : " test-unit-race"
80
+ run : |
81
+ echo "::group:: race test"
82
+ cd mod/tigron
83
+ make test-unit-race
84
+ echo "::endgroup::"
85
+ - name : " test-unit-bench"
86
+ run : |
87
+ echo "::group:: bench"
88
+ cd mod/tigron
89
+ make test-unit-bench
90
+ echo "::endgroup::"
You can’t perform that action at this time.
0 commit comments