@cryptotaxi247 / kubo / commits / fb80af518

fix: ensure unique job names across all GHA workflows

galargh committed Mar 21, 2023 at 15:26 UTC fb80af5180ec9e1d9700b7dafb1a79ec9fef2c66
8 files changed +24 -24
.github/workflows/build.yml
+5 -5
@@ -11,7 +11,7 @@ env:
11 GO_VERSION: 1.19.1
12
13 jobs:
14 - prepare:
14 + interop-prep:
15 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
16 runs-on: ubuntu-latest
17 timeout-minutes: 5
@@ -39,7 +39,7 @@ jobs:
39 name: kubo
40 path: cmd/ipfs/ipfs
41 interop:
42 - needs: [prepare]
42 + needs: [interop-prep]
43 runs-on: ubuntu-latest
44 timeout-minutes: 20
45 defaults:
@@ -77,7 +77,7 @@ jobs:
77 IPFS_GO_EXEC: ${{ github.workspace }}/cmd/ipfs/ipfs
78 working-directory: interop
79 go-ipfs-api:
80 - needs: [prepare]
80 + needs: [interop-prep]
81 runs-on: ubuntu-latest
82 timeout-minutes: 5
83 env:
@@ -117,7 +117,7 @@ jobs:
117 - run: cmd/ipfs/ipfs shutdown
118 if: always()
119 go-ipfs-http-client:
120 - needs: [prepare]
120 + needs: [interop-prep]
121 runs-on: ubuntu-latest
122 timeout-minutes: 5
123 env:
@@ -151,7 +151,7 @@ jobs:
151 - run: go test -count=1 -v ./...
152 working-directory: go-ipfs-http-client
153 ipfs-webui:
154 - needs: [prepare]
154 + needs: [interop-prep]
155 runs-on: ubuntu-latest
156 timeout-minutes: 20
157 env:
.github/workflows/codeql-analysis.yml
+1 -1
@@ -16,7 +16,7 @@ permissions:
16 security-events: write # (github/codeql-action/autobuild)
17
18 jobs:
19 - go:
19 + codeql:
20 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
21 runs-on: ubuntu-latest
22 timeout-minutes: 20
.github/workflows/docker-build.yml
+1 -1
@@ -8,7 +8,7 @@ on:
8 - 'master'
9
10 jobs:
11 - head:
11 + docker-build:
12 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
13 runs-on: ubuntu-latest
14 timeout-minutes: 10
.github/workflows/gobuild.yml
+4 -4
@@ -8,12 +8,12 @@ on:
8 - 'master'
9
10 jobs:
11 - runner:
11 + go-build-runner:
12 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
13 uses: ipfs/kubo/.github/workflows/runner.yml@master
14 - build:
15 - needs: [runner]
16 - runs-on: ${{ fromJSON(needs.runner.outputs.config).labels }}
14 + go-build:
15 + needs: [go-build-runner]
16 + runs-on: ${{ fromJSON(needs.go-build-runner.outputs.config).labels }}
17 timeout-minutes: 20
18 env:
19 TEST_NO_DOCKER: 1
.github/workflows/golang-analysis.yml
+1 -1
@@ -11,7 +11,7 @@ permissions:
11 contents: read # to fetch code (actions/checkout)
12
13 jobs:
14 - check:
14 + go-check:
15 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
16 runs-on: ubuntu-latest
17 timeout-minutes: 10
.github/workflows/golint.yml
+1 -1
@@ -8,7 +8,7 @@ on:
8 - 'master'
9
10 jobs:
11 - lint:
11 + go-lint:
12 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
13 runs-on: ubuntu-latest
14 timeout-minutes: 10
.github/workflows/gotest.yml
+1 -1
@@ -8,7 +8,7 @@ on:
8 - 'master'
9
10 jobs:
11 - test:
11 + go-test:
12 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
13 runs-on: ubuntu-latest
14 timeout-minutes: 20
.github/workflows/sharness.yml
+10 -10
@@ -8,12 +8,12 @@ on:
8 - 'master'
9
10 jobs:
11 - runner:
11 + sharness-runner:
12 if: github.repository == 'ipfs/kubo' || github.event_name == 'workflow_dispatch'
13 uses: ipfs/kubo/.github/workflows/runner.yml@master
14 - test:
15 - needs: [runner]
16 - runs-on: ${{ fromJSON(needs.runner.outputs.config).labels }}
14 + sharness-test:
15 + needs: [sharness-runner]
16 + runs-on: ${{ fromJSON(needs.sharness-runner.outputs.config).labels }}
17 timeout-minutes: 20
18 defaults:
19 run:
@@ -67,7 +67,7 @@ jobs:
67 TEST_EXPENSIVE: 1
68 IPFS_CHECK_RCMGR_DEFAULTS: 1
69 CONTINUE_ON_S_FAILURE: 1
70 - PARALLEL: ${{ fromJSON(needs.runner.outputs.config).parallel }}
70 + PARALLEL: ${{ fromJSON(needs.sharness-runner.outputs.config).parallel }}
71 - name: Upload coverage report
72 uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
73 if: failure() || success()
@@ -96,12 +96,12 @@ jobs:
96 - name: Upload one-page HTML report to S3
97 id: one-page
98 uses: pl-strflt/tf-aws-gh-runner/.github/actions/upload-artifact@main
99 - if: fromJSON(needs.runner.outputs.config).aws && (failure() || success())
99 + if: fromJSON(needs.sharness-runner.outputs.config).aws && (failure() || success())
100 with:
101 source: kubo/test/sharness/test-results/sharness.html
102 destination: sharness.html
103 - name: Upload one-page HTML report
104 - if: (! fromJSON(needs.runner.outputs.config).aws) && (failure() || success())
104 + if: (! fromJSON(needs.sharness-runner.outputs.config).aws) && (failure() || success())
105 uses: actions/upload-artifact@v3
106 with:
107 name: sharness.html
@@ -116,18 +116,18 @@ jobs:
116 - name: Upload full HTML report to S3
117 id: full
118 uses: pl-strflt/tf-aws-gh-runner/.github/actions/upload-artifact@main
119 - if: fromJSON(needs.runner.outputs.config).aws && (failure() || success())
119 + if: fromJSON(needs.sharness-runner.outputs.config).aws && (failure() || success())
120 with:
121 source: kubo/test/sharness/test-results/sharness-html
122 destination: sharness-html/
123 - name: Upload full HTML report
124 - if: (! fromJSON(needs.runner.outputs.config).aws) && (failure() || success())
124 + if: (! fromJSON(needs.sharness-runner.outputs.config).aws) && (failure() || success())
125 uses: actions/upload-artifact@v3
126 with:
127 name: sharness-html
128 path: kubo/test/sharness/test-results/sharness-html
129 - name: Add S3 links to the summary
130 - if: fromJSON(needs.runner.outputs.config).aws && (failure() || success())
130 + if: fromJSON(needs.sharness-runner.outputs.config).aws && (failure() || success())
131 run: echo "$MD" >> $GITHUB_STEP_SUMMARY
132 env:
133 MD: |