Skip to content

Commit

Permalink
ci(ado): dont run bundle-size on PR which is covered by GHA (#33222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell authored Nov 7, 2024
1 parent 18f41fc commit 0436b78
Showing 1 changed file with 18 additions and 20 deletions.
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)
# 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

0 comments on commit 0436b78

Please sign in to comment.