Skip to content

Commit

Permalink
Merge branch 'git-commit-push-action-6243894441-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 20, 2023
2 parents 6ea7995 + 364e608 commit d03c835
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 22 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/68-ostypes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 68 - OS TYPES

on:
workflow_dispatch:

jobs:
test-ostype:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- run: |
echo $OSTYPE
shell: bash
38 changes: 19 additions & 19 deletions .github/workflows/workflow-tester40.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@ jobs:
runs-on: ${{ matrix.test }}
strategy:
matrix:
test: ${{ env.MAC_OS_RUNNER }}
# test: ${{ env.MAC_OS_RUNNER }}
os: [ubuntu-latest, windows-latest, macos-latest]
python: [2.7, 3.7, 3.8, 3.9]
steps:
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- run: |
echo $OSTYPE
python --version
shell: bash
test-include:
runs-on: ubuntu-latest
strategy:
matrix:
org: [apples, bananas, carrots] #Array of org mnemonics to use below
include:
# includes a new variable for each org (this is effectively a switch statement)
- org: apples
test_secret: MAC_OS_RUNNER
- org: bananas
test_secret: MAC_OS_RUNNER
- org: carrots
test_secret: MAC_OS_RUNNER
steps:
- uses: actions/checkout@v2
- name: Install SFDX CLI and authorize org
run: ${{ secrets[matrix.MAC_OS_RUNNER] }}
# test-include:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# org: [apples, bananas, carrots] #Array of org mnemonics to use below
# include:
# # includes a new variable for each org (this is effectively a switch statement)
# - org: apples
# test_secret: MAC_OS_RUNNER
# - org: bananas
# test_secret: MAC_OS_RUNNER
# - org: carrots
# test_secret: MAC_OS_RUNNER
# steps:
# - uses: actions/checkout@v2
# - name: Install SFDX CLI and authorize org
# run: ${{ secrets[matrix.MAC_OS_RUNNER] }}
28 changes: 28 additions & 0 deletions .github/workflows/workflow-tester89.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test 89 # Related to SO: https://stackoverflow.com/questions/77133952/reusable-workflows-should-be-referenced-at-the-top-level-jobs-uses-key-not
on:
push:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
bd_scan:
runs-on: ubuntu-latest
outputs:
day: ${{ steps.check_day.outputs.day }}
steps:
- name: Check Day of the Week
id: check_day
run: |
echo $(date +%u)
echo "day=$(date +%u)" >> $GITHUB_OUTPUT
reusable:
needs: [bd_scan]
if: ${{ needs.bd_scan.outputs.day < 5 }}
uses: GuillaumeFalourd/poc-github-actions/.github/workflows/workflow-tester88-reusable.yml@main
with:
stage: ${{ needs.bd_scan.outputs.day }}
secrets: inherit
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,7 @@ This workflow illustrates how to manipulate matrix object to perform different o
[![67 - From JSON Env Var](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/67-fromjson-env-var.yml/badge.svg)](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/67-fromjson-env-var.yml)

This workflow illustrates how to extract a specific item from a JSON list stored in a environment variable dynamically.

[![68 - OS Types](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/68-ostypes.yml/badge.svg)](https://github.com/GuillaumeFalourd/poc-github-actions/actions/workflows/68-ostypes.yml)

This workflow shows the os type value for each github runner os.
2 changes: 1 addition & 1 deletion backup/checkout-workflow.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Mon Sep 18 01:10:12 UTC 2023
Tue Sep 19 01:10:47 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 @@
Fri Sep 15 06:21:44 UTC 2023
Mon Sep 18 06:22:17 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 @@
Tue Sep 19 04:13:02 UTC 2023
Wed Sep 20 04:13:13 UTC 2023

0 comments on commit d03c835

Please sign in to comment.