Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewige committed Dec 12, 2024
1 parent 9e2ca3d commit 53f62b2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/reusable-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,19 @@ jobs:
# - Any of the github environments.
# - 1es-<RUNNER_POOL_NAME> (which matches ebpf-cicd-runner-pool-<RUNNER_POOL_NAME> in the 1es pool)
runs-on: ubuntu-latest
outputs:
runs_on: ${{ steps.set_runner.outputs.runs_on }}
runs_on_pool: ${{ steps.set_runner.outputs.runs_on_pool }}
steps:
- name: Set runner type
id: set_runner
run: |
if [[ "${{ inputs.environment }}" == *"1es"* ]]; then
pool_name=$(echo "${{ inputs.environment }}" | sed 's/.*1es-//')
echo "::set-output name=runs_on::self-hosted"
echo "::set-output name=runs_on_pool::1ES.Pool=ebpf-cicd-runner-pool-$pool_name"
echo "runs_on=self-hosted" >> $GITHUB_OUTPUT
echo "runs_on_pool=1ES.Pool=ebpf-cicd-runner-pool-$pool_name" >> $GITHUB_OUTPUT
else
echo "::set-output name=runs_on::${{ inputs.environment }}"
fi
echo "runs_on=${{ inputs.environment }}" >> $GITHUB_OUTPUT
run_test:
needs: set-job-environment
# Due to app-verifier, unit tests take a lot longer to execute. Increase the timeout to 90 minutes.
Expand All @@ -87,8 +89,8 @@ jobs:
matrix:
configurations: ${{ fromJSON(inputs.configurations) }}
runs-on:
- ${{ needs.set-job-environment.steps.outputs.runs_on }}
- ${{ needs.set-job-environment.steps.outputs.runs_on_pool }}
- ${{ needs.set-job-environment.outputs.runs_on }}
- ${{ needs.set-job-environment.outputs.runs_on_pool }}
env:
# Configuration type to build.
SOURCE_ROOT: ${{github.workspace}}
Expand Down

0 comments on commit 53f62b2

Please sign in to comment.