File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 branches :
99 - main
1010 pull_request :
11+ paths :
12+ - " src/**"
1113 schedule :
1214 - cron : " 0 0 * * *" # every day at midnight
1315
@@ -16,7 +18,7 @@ permissions:
1618
1719jobs :
1820 smoke-test :
19- if : github.repository == 'microsoft/component-detection'
21+ if : github.repository == 'microsoft/component-detection' && (github.event_name != 'pull_request' || github.event.pull_request.draft == false)
2022 runs-on : ["self-hosted", "1ES.Pool=1ES-OSE-GH-Pool"]
2123 strategy :
2224 matrix :
3638 { name: "Yarn", repo: "gatsbyjs/gatsby" },
3739 ]
3840 fail-fast : false
39- max-parallel : 4 # limit the total number of running jobs to avoid rate limiting
41+ max-parallel : 6
4042 name : ${{ matrix.language.name }}
4143 steps :
4244 - name : Harden Runner
8284 - name : Run Smoke Test
8385 working-directory : src/Microsoft.ComponentDetection
8486 run : |
85- for i in $(seq 1 10); do
87+ ITERATIONS=${{ github.event_name == 'schedule' && 10 || 1 }}
88+ for i in $(seq 1 $ITERATIONS); do
8689 dotnet run -c Release -- scan --SourceDirectory ${{ github.workspace }}/smoke-test-repo --Verbosity Verbose || exit 1
8790 done
8891
You can’t perform that action at this time.
0 commit comments