empty test list #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_call: | |
env: | |
COMMANDS: | | |
{ | |
pageload: 'yarn benchmark:chrome --out test-artifacts/chrome/benchmark/pageload.json --retries 2', | |
userActions: 'yarn user-actions-benchmark:chrome --out test-artifacts/chrome/benchmark/userActions.json --retries 2', | |
} | |
jobs: | |
benchmarks: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
buildType: [browserify, webpack] | |
testType: [pageload, userActions] | |
name: ${{ matrix.buildType }}-${{ matrix.testType }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup environment | |
uses: metamask/github-tools/.github/actions/setup-environment@1d657e262aea7e3f216754febb624831527d2565 | |
- name: Download artifact prep-build-test-${{ matrix.buildType }} | |
uses: actions/download-artifact@v4 | |
with: | |
path: ./dist/ | |
pattern: prep-build-test-${{ matrix.buildType }} | |
merge-multiple: true | |
- name: Run the benchmark | |
# Choose a benchmark command from env.COMMANDS | |
run: ${{ fromJson(env.COMMANDS)[matrix.testType] }} | |
- name: Rename test artifacts | |
- run: mv test-artifacts/chrome/benchmark/${{ matrix.testType }}.json test-artifacts/chrome/benchmark/benchmark-${{ matrix.buildType }}-${{ matrix.testType }}.json | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: benchmark-${{ matrix.buildType }}-${{ matrix.testType }} | |
path: test-artifacts/chrome/benchmark/ |