1818 branches :
1919 - ' **'
2020
21+ concurrency :
22+ group : ${{ github.workflow }}-${{ github.ref }}
23+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
24+
2125jobs :
22- test :
26+ test-linux :
27+ name : Test (Linux)
28+ runs-on : [self-hosted, linux, bee]
29+ steps :
30+ - name : Checkout
31+ uses : actions/checkout@v5
32+ - name : Setup Go
33+ uses : actions/setup-go@v6
34+ with :
35+ cache : true
36+ go-version-file : go.mod
37+ - name : Build
38+ run : make build
39+ - name : Test with race detector
40+ run : make test-ci-race
41+ test-other :
2342 name : Test
2443 runs-on : ${{ matrix.os }}
2544 strategy :
2645 matrix :
27- os : [ubuntu-latest, macos-latest, windows-latest]
46+ os : [macos-latest, windows-latest]
2847 steps :
2948 - name : Checkout
3049 uses : actions/checkout@v5
@@ -33,19 +52,14 @@ jobs:
3352 with :
3453 cache : true
3554 go-version-file : go.mod
36- - name : Increase UDP buffer sizes (Ubuntu)
37- if : matrix.os == 'ubuntu-latest'
38- run : |
39- sudo sysctl -w net.core.rmem_max=7500000
40- sudo sysctl -w net.core.wmem_max=7500000
4155 - name : Increase UDP buffer sizes (macOS)
4256 if : matrix.os == 'macos-latest'
4357 run : |
4458 sudo sysctl -w kern.ipc.maxsockbuf=6291456
4559 - name : Build
4660 run : make build
47- - name : Test with race detector (Ubuntu and MacOS )
48- if : matrix.os != 'windows -latest'
61+ - name : Test with race detector (macOS )
62+ if : matrix.os == 'macos -latest'
4963 run : make test-ci-race
5064 - name : Test without race detector (Windows)
5165 if : matrix.os == 'windows-latest'
@@ -102,15 +116,15 @@ jobs:
102116 - name : Test with code coverage
103117 run : make cover=1 test-ci
104118 - name : Upload coverage to Codecov
105- uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
119+ uses : codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
106120 with :
107121 token : ${{ secrets.CODECOV_TOKEN }}
108122 fail_ci_if_error : true
109123 files : ./cover.out
110124 trigger-beekeeper :
111125 name : Trigger Beekeeper
112126 runs-on : ubuntu-latest
113- needs : [test, lint, coverage]
127+ needs : [test-linux, test-other , lint, coverage]
114128 if : github.ref == 'refs/heads/master'
115129 steps :
116130 - name : Checkout
0 commit comments