Skip to content

Commit

Permalink
ci: Updated security agent workflow to use large runners when availab…
Browse files Browse the repository at this point in the history
…le (#2271)
  • Loading branch information
bizob2828 authored Jun 12, 2024
1 parent 761fcd5 commit 181ec1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/versioned-security-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
github.event_name == 'schedule' ||
needs.should_run.outputs.sec_agent_did_change == 'true'

runs-on: {{ vars.NR_RUNNER || 'ubuntu-latest' }}
runs-on: ${{ vars.NR_RUNNER || 'ubuntu-latest' }}

strategy:
fail-fast: false
Expand All @@ -82,6 +82,7 @@ jobs:
run: TEST_CHILD_TIMEOUT=600000 npm run versioned:security
env:
VERSIONED_MODE: --${{ inputs.mode || 'major' }}
JOBS: 4 # 2 per CPU seems to be the sweet spot in GHA (July 2022)
# Run more jobs when using larger runner, otherwise 2 per CPU seems to be the sweet spot in GHA default runners(July 2022)
JOBS: ${{ vars.NR_RUNNER && 16 || 4 }}
SKIP_C8: true

0 comments on commit 181ec1b

Please sign in to comment.