-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'git-commit-push-action-6180837398-macos-full-remote' in…
…to macos
- Loading branch information
Showing
5 changed files
with
80 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Test 88 (reusable) | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
stage: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Build in ${{ inputs.stage }} | ||
run: | | ||
echo "Build in ${{ inputs.stage }}" | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Test in ${{ inputs.stage }} | ||
run: | | ||
echo "Test in ${{ inputs.stage }}" | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy in ${{ inputs.stage }} | ||
run: | | ||
echo "Deploy in ${{ inputs.stage }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Test 88 # Related to SO: https://stackoverflow.com/questions/72537896/github-actions-create-matrix-of-multiple-sequential-jobs | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
common-matrix-job: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
environments: ${{ steps.environments.outputs.environments }} | ||
steps: | ||
- name: Build Environments Array | ||
id: environments | ||
run: | | ||
myArray=() | ||
myArray+=("env1") | ||
myArray+=("env2") | ||
myArray+=("env3") | ||
myArray=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${myArray[@]}") | ||
echo "Updated environments list: $myArray" | ||
echo "environments=$myArray" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
reusable: | ||
needs: [common-matrix-job] | ||
strategy: | ||
matrix: | ||
environment: ${{ fromJSON(needs.common-matrix-job.outputs.environments) }} | ||
fail-fast: true | ||
max-parallel: 1 | ||
# environment: | ||
# name: ${{ matrix.environment }} | ||
uses: GuillaumeFalourd/poc-github-actions/.github/workflows/workflow-tester88-reusable.yml@main | ||
with: | ||
stage: ${{ matrix.environment }} | ||
|
||
common-job: | ||
needs: [common-matrix-job, reusable] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Do something | ||
run: echo "Do something" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Tue Sep 12 01:07:57 UTC 2023 | ||
Wed Sep 13 01:10:53 UTC 2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Mon Sep 11 06:21:53 UTC 2023 | ||
Tue Sep 12 06:21:34 UTC 2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Wed Sep 13 04:13:09 UTC 2023 | ||
Thu Sep 14 04:12:41 UTC 2023 |