Skip to content

Commit

Permalink
Merge pull request #15 from snow-actions/runners
Browse files Browse the repository at this point in the history
snow-actions/list-github-hosted-runners
  • Loading branch information
SnowCait authored Dec 31, 2022
2 parents 99bcce8 + b68dcaf commit 73dffaf
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,24 @@ on:
workflow_dispatch:

jobs:
runners:
runs-on: ubuntu-latest
outputs:
all: ${{ steps.list.outputs.all }}
windows: ${{ steps.list.outputs.windows }}
steps:
- id: list
uses: snow-actions/[email protected]

test-bash:
needs: [ runners ]
strategy:
fail-fast: false
matrix:
# Runs on all supported runners
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
os: [ ubuntu-22.04, ubuntu-20.04, ubuntu-18.04, windows-2022, windows-2019, macos-11, macos-10.15 ]
runs-on: ${{ matrix.os }}
runner: ${{ fromJSON(needs.runners.outputs.all) }}
runs-on: ${{ matrix.runner }}
timeout-minutes: 5
defaults:
run:
Expand All @@ -41,11 +51,12 @@ jobs:
- run: test "$(cat greet.txt)" = "Hello composite action"

test-powershell:
needs: [ runners ]
strategy:
fail-fast: false
matrix:
os: [ windows-2022, windows-2019 ]
runs-on: ${{ matrix.os }}
runner: ${{ fromJSON(needs.runners.outputs.windows) }}
runs-on: ${{ matrix.runner }}
timeout-minutes: 5

steps:
Expand Down

0 comments on commit 73dffaf

Please sign in to comment.