Skip to content

Commit 5fe7f3b

Browse files
committed
chore: cleanup and refactor ci into reusable jobs
- chore: cleanup file structure for clearer job roles - chore: remove all direct job hooks in favor of entrypoints - chore: begin refactoring main build job - chore: run formatter on `.github/workflows` Signed-off-by: Sam Gammon <sam@elide.ventures>
1 parent f19a39a commit 5fe7f3b

16 files changed

+431
-243
lines changed

.github/workflows/codeql.ci.yml .github/workflows/checks.codeql.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "CodeQL"
22

3-
on:
3+
"on":
44
workflow_dispatch: {}
55
workflow_call: {}
66
push:
@@ -35,8 +35,8 @@ jobs:
3535
- name: "Setup: GraalVM (Java 21)"
3636
uses: graalvm/setup-graalvm@a1b47fdf04e772fed6b3b46131e226f9aea5e169 # v1
3737
with:
38-
distribution: 'graalvm'
39-
java-version: '21'
38+
distribution: "graalvm"
39+
java-version: "21"
4040
github-token: ${{ secrets.GITHUB_TOKEN }}
4141
- name: "Setup: Initialize CodeQL"
4242
uses: github/codeql-action/init@012739e5082ff0c22ca6d6ab32e07c36df03c4a4 # v3.22.12

.github/workflows/gradle-wrapper-validation.yml .github/workflows/checks.gradle-wrapper.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
name: Validate Gradle Wrapper
2-
on:
3-
push:
4-
branches:
5-
- main
6-
pull_request:
7-
branches:
8-
- "*"
2+
3+
"on":
4+
workflow_dispatch: {}
5+
workflow_call: {}
96

107
permissions:
118
contents: read
@@ -19,7 +16,6 @@ jobs:
1916
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
2017
with:
2118
egress-policy: audit
22-
2319
- name: Checkout latest code
2420
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3
2521
- name: Validate Gradle Wrapper

.github/workflows/model.ci.yml .github/workflows/checks.model.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
name: Model
22

3-
on:
4-
push:
5-
branches:
6-
- main
7-
- stable
8-
pull_request:
9-
types: [labeled, opened, reopened, synchronize]
3+
"on":
4+
workflow_dispatch: {}
5+
workflow_call: {}
106

117
permissions:
128
contents: read

.github/workflows/qodana.ci.yml .github/workflows/checks.qodana.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Qodana
2-
on:
2+
3+
"on":
34
workflow_dispatch: {}
45
workflow_call: {}
56

@@ -20,7 +21,7 @@ jobs:
2021
- name: "Setup: GraalVM (Java 21)"
2122
uses: graalvm/setup-graalvm@a1b47fdf04e772fed6b3b46131e226f9aea5e169 # v1
2223
with:
23-
distribution: 'graalvm'
24+
distribution: "graalvm"
2425
java-version: 21
2526
check-for-updates: false
2627
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/scorecards.yml .github/workflows/checks.scorecards.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
# by a third-party and are governed by separate terms of service, privacy
33
# policy, and support documentation.
44

5-
name: Scorecard supply-chain security
6-
on:
5+
name: Scorecard
6+
7+
"on":
78
# For Branch-Protection check. Only the default branch is supported. See
89
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
9-
branch_protection_rule:
10+
branch_protection_rule: {}
1011
# To guarantee Maintained check is occasionally updated. See
1112
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1213
schedule:
13-
- cron: '20 7 * * 2'
14-
push:
15-
branches: ["v3"]
14+
- cron: "20 7 * * 2"
15+
workflow_dispatch: {}
16+
workflow_call: {}
1617

1718
# Declare default permissions as read only.
1819
permissions: read-all

.github/workflows/bench.ci.yml .github/workflows/job.bench.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
name: Benchmark
22

3-
on:
4-
push:
5-
branches:
6-
- stable
7-
pull_request:
8-
types: [opened, reopened, synchronize]
3+
"on":
4+
workflow_dispatch: {}
5+
workflow_call: {}
96

107
env:
118
BUILDLESS_APIKEY: ${{ secrets.BUILDLESS_APIKEY }}
@@ -68,7 +65,7 @@ jobs:
6865
if: ${{ matrix.engine == 'graalvm' }}
6966
with:
7067
components: "native-image,js,wasm"
71-
distribution: 'graalvm'
68+
distribution: "graalvm"
7269
java-version: ${{ matrix.java }}
7370
github-token: ${{ secrets.GITHUB_TOKEN }}
7471
- name: "Setup: Zulu"

0 commit comments

Comments
 (0)