Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(ado): dont run bundle-size on PR which is covered by GHA #33222

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 18 additions & 20 deletions azure-pipelines.bundlesize.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
pr:
- master

pr: none
trigger:
- master

Expand All @@ -24,25 +22,25 @@ jobs:
filePath: yarn-ci.sh
displayName: yarn

- script: |
yarn nx affected -t bundle-size --nxBail $(sinceArg)
displayName: build packages & create reports
condition: eq(variables.isPR, true)
# - script: |
# yarn nx affected -t bundle-size --nxBail $(sinceArg)
Hotell marked this conversation as resolved.
Show resolved Hide resolved
# displayName: build packages & create reports
# condition: eq(variables.isPR, true)

- script: |
npx monosize compare-reports --branch=$(System.PullRequest.TargetBranch) --output=markdown --quiet > ./monosize-report.md
displayName: compare bundle size with base (PR only)
condition: eq(variables.isPR, true)
# - script: |
# npx monosize compare-reports --branch=$(System.PullRequest.TargetBranch) --output=markdown --quiet > ./monosize-report.md
# displayName: compare bundle size with base (PR only)
# condition: eq(variables.isPR, true)

- task: GithubPRComment@0
displayName: Post results to PR (PR only)
condition: eq(variables.isPR, true)
inputs:
githubOwner: microsoft
githubRepo: 'fluentui'
blobFilePath: 'monosize-report.md'
status: 'success'
uniqueId: 'bundleSizeComment9423'
# - task: GithubPRComment@0
# displayName: Post results to PR (PR only)
# condition: eq(variables.isPR, true)
# inputs:
# githubOwner: microsoft
# githubRepo: 'fluentui'
# blobFilePath: 'monosize-report.md'
# status: 'success'
# uniqueId: 'bundleSizeComment9423'

- script: |
yarn nx run-many -t bundle-size --nxBail
Expand Down
Loading