test: use self hosted runner for go tests (#9792)
Gus Eggert committed
Apr 5, 2023 at 06:59 UTC
f5bcaaecc1d6e299bbf60fb50b9b082e425348e5
1 file changed
+6
-3
.github/workflows/gotest.yml
+6
-3
@@ -12,9 +12,12 @@ concurrency:
12
cancel-in-progress: true
13
14
jobs:
15
- go-test:
15
+ go-test-runner:
16
if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
17
- runs-on: ubuntu-latest
17
+ uses: ipfs/kubo/.github/workflows/runner.yml@master
18
+ go-test:
19
+ needs: [go-test-runner]
20
+ runs-on: ${{ fromJSON(needs.go-test-runner.outputs.config).labels }}
21
timeout-minutes: 20
22
env:
23
TEST_NO_DOCKER: 1
@@ -39,7 +42,7 @@ jobs:
42
name: ${{ github.job }}
43
- name: 👉️ If this step failed, go to «Summary» (top left) → inspect the «Failures/Errors» table
44
run: |
42
- make -j 1 test/unit/gotest.junit.xml &&
45
+ make -j 2 test/unit/gotest.junit.xml &&
46
[[ ! $(jq -s -c 'map(select(.Action == "fail")) | .[]' test/unit/gotest.json) ]]
47
- name: Upload coverage to Codecov
48
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0