Skip to content

Commit

Permalink
Add (optional) GitHub Action input for runner
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Feb 28, 2023
1 parent 092417a commit 2420ed4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,20 @@ on:
type: boolean

workflow_dispatch:
inputs:
runner:
description: Run tests on
type: choice
default: ubuntu-latest
options:
- macos-latest
- ubuntu-latest
- windows-latest

jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ${{ github.event.inputs.runner || 'ubuntu-latest' }}

env:
ENVIRONMENT: production
Expand Down Expand Up @@ -59,7 +68,7 @@ jobs:

test:
name: ${{ matrix.task.description }}
runs-on: ubuntu-latest
runs-on: ${{ github.event.inputs.runner || 'ubuntu-latest' }}
needs: [build]

strategy:
Expand Down

0 comments on commit 2420ed4

Please sign in to comment.