Skip to content

Commit c0147a1

Browse files
Take a REPO_COUNT when running TOP_REPOS from the userTests workflow. (#120)
This will make it possible for bot commands like `test top200` etc.
1 parent ba61970 commit c0147a1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

azure-pipelines-userTests.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ parameters:
88
type: boolean
99
default: false
1010
- name: TOP_REPOS
11-
displayName: Query Github for top TS repos by stars
11+
displayName: Whether to query Github for top TS repos by stars. If false, uses the user test suite.
1212
type: boolean
1313
default: false
14+
- name: REPO_COUNT
15+
displayName: Number of repositories to run on for when TOP_REPOS is set to true.
16+
type: number
17+
default: 100
1418
- name: OLD_TS_REPO_URL
1519
displayName: Old Typscript Repo Url
1620
type: string
@@ -66,7 +70,7 @@ jobs:
6670
npm ci
6771
npm run build
6872
mkdir artifacts
69-
- script: node dist/listTopRepos TypeScript 100 0 artifacts/repos.json
73+
- script: node dist/listTopRepos TypeScript ${{ parameters.REPO_COUNT }} 0 artifacts/repos.json
7074
condition: eq('${{ parameters.TOP_REPOS }}', 'true')
7175
env:
7276
GITHUB_PAT: $(GITHUB_PAT)

0 commit comments

Comments
 (0)