Skip to content

Commit ea90a6b

Browse files
committed
Added bash-enforcement
Added bash-enforcement & fixed some hardcoded runners
1 parent e482b89 commit ea90a6b

30 files changed

+118
-4
lines changed

.github/workflows/build-version-resolver.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
version_resolver:
2424
name: Generate Build Version
2525
runs-on: ${{ inputs.runnerMain }}
26+
defaults:
27+
run:
28+
shell: bash
2629
outputs:
2730
buildVersion: ${{ steps.get_version.outputs.version }}
2831

.github/workflows/build-version-tagger.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
name: 🏷️ Resolve & Create Tag
3333
if: ${{ inputs.buildType != 'preview' }}
3434
runs-on: ${{ inputs.runnerMain }}
35+
defaults:
36+
run:
37+
shell: bash
3538
outputs:
3639
buildVersion: ${{ steps.set_version.outputs.version }}
3740
tag_existed: ${{ steps.tag_exists.outputs.exists }}
@@ -62,6 +65,9 @@ jobs:
6265
summarize_tagging:
6366
name: 📄 Summarize Tagging Info
6467
runs-on: ${{ inputs.runnerMain }}
68+
defaults:
69+
run:
70+
shell: bash
6571
needs: tag_resolver
6672
if: always()
6773
steps:

.github/workflows/ci-cd-dispatcher.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ jobs:
8080
needs:
8181
- resolve_runners
8282
runs-on: ${{ needs.resolve_runners.outputs.main }}
83+
defaults:
84+
run:
85+
shell: bash
8386
outputs:
8487
should_run: ${{ steps.check.outputs.should_run }}
8588
steps:
@@ -164,6 +167,9 @@ jobs:
164167
- prepare_metadata
165168
if: ${{ needs.validation.outputs.should_run == 'true'}}
166169
runs-on: ${{ needs.resolve_runners.outputs.main }}
170+
defaults:
171+
run:
172+
shell: bash
167173
steps:
168174
- name: Checkout Workflows Only
169175
uses: actions/checkout@v4

.github/workflows/ci-cd-pipeline.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
unpack_inputs:
3535
name: Unpack Inputs
3636
runs-on: ${{ inputs.runnerMain }}
37+
defaults:
38+
run:
39+
shell: bash
3740
outputs:
3841
projectName: ${{ steps.unpack.outputs.projectName }}
3942
skipTests: ${{ steps.unpack.outputs.skipTests }}

.github/workflows/combine-builds.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
combine:
3030
name: 📆 Combine All Build Targets Into One Folder
3131
runs-on: ${{ inputs.runnerMain }}
32+
defaults:
33+
run:
34+
shell: bash
3235
outputs:
3336
created: ${{ steps.set-created.outputs.success }}
3437
steps:

.github/workflows/dry-build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ name: 🌀 Dry Build
33
on:
44
workflow_call:
55
inputs:
6+
runnerMain:
7+
type: string
8+
required: false
9+
runnerMacos:
10+
type: string
11+
required: false
612
projectName:
713
type: string
814
required: false
@@ -34,11 +40,13 @@ jobs:
3440
name: 🧮 Group Build Targets
3541
uses: ./.github/workflows/group-build-targets-by-os.yml
3642
with:
43+
runnerMain: ${{ inputs.runnerMain }}
44+
runnerMacos: ${{ inputs.runnerMacos }}
3745
buildTargets: ${{ inputs.buildTargets }}
3846

3947
generate_matrix:
4048
name: 🧮 Generate Dry Build Matrix
41-
runs-on: ubuntu-latest
49+
runs-on: ${{ inputs.runnerMain }}
4250
needs: [ group_build_targets ]
4351
outputs:
4452
matrix: ${{ steps.set-matrix.outputs.matrix }}
@@ -101,6 +109,7 @@ jobs:
101109
if: always()
102110
uses: ./.github/workflows/summarize-builds.yml
103111
with:
112+
runnerMain: ${{ inputs.runnerMain }}
104113
projectName: ${{ inputs.projectName }}
105114
buildVersion: ${{ inputs.buildVersion }}
106115
groupedBuildTargets: ${{ needs.group_build_targets.outputs.validBuildTargets }}

.github/workflows/dry-deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: 🌀 Dry Deploy
33
on:
44
workflow_call:
55
inputs:
6+
runnerMain:
7+
type: string
8+
required: false
69
deployTargets:
710
description: "JSON array of deploy targets (e.g. [\"itch.io\", \"s3\"])"
811
required: true
@@ -21,7 +24,10 @@ on:
2124
jobs:
2225
dry_deploy:
2326
name: 🛠 Simulate Deployments
24-
runs-on: ubuntu-latest
27+
runs-on: ${{ inputs.runnerMain }}
28+
defaults:
29+
run:
30+
shell: bash
2531
outputs:
2632
deployResult: ${{ steps.simulate.outputs.deployResult }}
2733
steps:

.github/workflows/dry-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: 🌀 Dry Release
33
on:
44
workflow_call:
55
inputs:
6+
runnerMain:
7+
type: string
8+
required: false
69
simulateResult:
710
description: "Simulate whether the release succeeds or fails"
811
required: true
@@ -16,7 +19,10 @@ on:
1619
jobs:
1720
dry_release:
1821
name: 🧪 Simulate Release
19-
runs-on: ubuntu-latest
22+
runs-on: ${{ inputs.runnerMain }}
23+
defaults:
24+
run:
25+
shell: bash
2026
outputs:
2127
releaseErrorMessage: ${{ steps.simulate.outputs.releaseErrorMessage }}
2228
steps:

.github/workflows/dry-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: 🌀 Dry Tests
33
on:
44
workflow_call:
55
inputs:
6+
runnerMain:
7+
type: string
8+
required: false
69
editmodeFailedCount:
710
description: "Number of simulated failed EditMode tests"
811
required: true
@@ -45,7 +48,10 @@ on:
4548
jobs:
4649
dry_tests:
4750
name: 🧪 Simulate Tests Summary
48-
runs-on: ubuntu-latest
51+
runs-on: ${{ inputs.runnerMain }}
52+
defaults:
53+
run:
54+
shell: bash
4955
outputs:
5056
hasFails: ${{ steps.simulate.outputs.hasFails }}
5157
totalTests: ${{ steps.simulate.outputs.totalTests }}

.github/workflows/group-build-targets-by-os.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
filter_targets:
2323
name: 🧮 Filter Targets
2424
runs-on: ${{ inputs.runnerMain }}
25+
defaults:
26+
run:
27+
shell: bash
2528
outputs:
2629
validBuildTargets: ${{ steps.group.outputs.validBuildTargets }}
2730

0 commit comments

Comments
 (0)