Skip to content

Commit

Permalink
ci(e2e): use non-minified bundle (#4744)
Browse files Browse the repository at this point in the history
* ci(e2e): use non-minified bundle

* ci: tweaks

* ci: fix values
  • Loading branch information
paul-soporan committed Aug 18, 2022
1 parent aadda80 commit cb7a677
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
inputs:
minify-bundle:
description: 'Whether to minify the bundle'
required: false
default: 'false'

runs:
using: composite
steps:
Expand All @@ -11,12 +17,12 @@ runs:
id: cache-build
with:
path: packages/yarnpkg-cli/bundles/yarn.js
key: cli-bundle-${{ github.sha }}
key: cli-bundle-minified-${{ inputs.minify-bundle }}-${{ github.sha }}

- name: 'Build the standard bundle'
if: steps.cache-build.outputs.cache-hit != 'true'
run: |
node ./scripts/run-yarn.js build:cli
node ./scripts/run-yarn.js build:cli ${{ inputs.minify-bundle == 'false' && '--no-minify' || '' }}
shell: bash
#endregion

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/benchmark-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
- uses: actions/checkout@master

- uses: ./.github/actions/prepare
with:
minify-bundle: true

- name: 'Install Hyperfine'
run: |
Expand Down

0 comments on commit cb7a677

Please sign in to comment.