Skip to content

Commit 55fb64d

Browse files
authored
feat: Sequencing workflows so that faster workflows run before slower ones (#4670)
1 parent 2717472 commit 55fb64d

File tree

11 files changed

+72
-10
lines changed

11 files changed

+72
-10
lines changed

.github/workflows/base-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Base Tests
22

33
on:
4-
push:
4+
workflow_call:
55

66
jobs:
77
test:

.github/workflows/build-no-proxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build Without Go Proxy
22

33
on:
4-
push:
4+
workflow_call:
55

66
jobs:
77
build-no-proxy:

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build
22

33
on:
4-
push:
4+
workflow_call:
55

66
jobs:
77
build:

.github/workflows/ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
lint:
8+
uses: ./.github/workflows/lint.yml
9+
secrets: inherit
10+
11+
precommit:
12+
uses: ./.github/workflows/precommit.yml
13+
secrets: inherit
14+
15+
codespell:
16+
uses: ./.github/workflows/codespell.yml
17+
secrets: inherit
18+
19+
markdownlint:
20+
uses: ./.github/workflows/markdownlint.yml
21+
secrets: inherit
22+
23+
license_check:
24+
uses: ./.github/workflows/license-check.yml
25+
secrets: inherit
26+
27+
base_tests:
28+
needs: [lint, precommit, codespell, markdownlint, license_check]
29+
uses: ./.github/workflows/base-test.yml
30+
permissions:
31+
contents: read
32+
checks: write
33+
secrets: inherit
34+
35+
build:
36+
needs: [lint, precommit, codespell, markdownlint, license_check]
37+
uses: ./.github/workflows/build.yml
38+
secrets: inherit
39+
40+
build_no_proxy:
41+
needs: [lint, precommit, codespell, markdownlint, license_check]
42+
uses: ./.github/workflows/build-no-proxy.yml
43+
secrets: inherit
44+
45+
integration_tests:
46+
needs: [base_tests, build, build_no_proxy]
47+
uses: ./.github/workflows/integration-test.yml
48+
permissions:
49+
contents: read
50+
checks: write
51+
secrets: inherit
52+
53+
oidc_integration_tests:
54+
needs: [base_tests, build, build_no_proxy]
55+
uses: ./.github/workflows/oidc-integration-test.yml
56+
permissions:
57+
id-token: write
58+
contents: read
59+
checks: write
60+
secrets: inherit
61+
62+

.github/workflows/codespell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Codespell
22

33
on:
4-
push:
4+
workflow_call:
55

66
jobs:
77
codespell:

.github/workflows/integration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Integration Tests
22

33
on:
4-
push:
4+
workflow_call:
55

66
jobs:
77
test:

.github/workflows/license-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: License Check
22

33
on:
4-
push:
4+
workflow_call:
55

66
jobs:
77
license-check:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Lint
22

33
on:
4-
push:
4+
workflow_call:
55

66
jobs:
77
lint:

.github/workflows/markdownlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Markdown Lint
22

33
on:
4-
push:
4+
workflow_call:
55

66
jobs:
77
markdownlint:

.github/workflows/oidc-integration-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
name: OIDC Integration Tests
66

77
on:
8-
push:
8+
workflow_call:
99

1010
permissions:
1111
id-token: write

0 commit comments

Comments
 (0)