Skip to content

Commit

Permalink
Merge branch 'git-commit-push-action-6180837398-macos-full-remote' in…
Browse files Browse the repository at this point in the history
…to macos
  • Loading branch information
GuillaumeFalourd authored and GuillaumeFalourd committed Sep 14, 2023
2 parents fab7ce8 + ad8c3c0 commit 0b174c4
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/workflow-tester88-reusable.yml
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 }}"
47 changes: 47 additions & 0 deletions .github/workflows/workflow-tester88.yml
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"
2 changes: 1 addition & 1 deletion backup/checkout-workflow.txt
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
2 changes: 1 addition & 1 deletion backup/pull-request-workflow.txt
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
2 changes: 1 addition & 1 deletion macos_report_full_remote.txt
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

0 comments on commit 0b174c4

Please sign in to comment.