Skip to content

Commit

Permalink
CI: allow overriding runs-on for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
m110 committed Jan 3, 2025
1 parent 9d5e2da commit b16a3a7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
required: false
type: boolean
default: false
runs-on:
required: false
type: string
default: 'ubuntu-latest'
secrets:
codecov_token:
required: false
Expand All @@ -34,7 +38,7 @@ jobs:
uses: golangci/golangci-lint-action@v3
tests:
needs: [build]
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
Expand All @@ -50,7 +54,7 @@ jobs:
- run: make test_stress
if: ${{ inputs.stress-tests }}
codecov:
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
if: ${{ inputs.codecov }}
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit b16a3a7

Please sign in to comment.