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