This repository was archived by the owner on Oct 1, 2025. It is now read-only.
Replace dependency rollup-plugin-terser with @rollup/plugin-terser ^0.1.0 #374
This file contains hidden or 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
| name: benchmark | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| node: | |
| name: node | |
| strategy: | |
| matrix: | |
| node: | |
| - 12 | |
| - 14 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - id: yarn-cache | |
| run: echo "::set-output name=dir::$(yarn cache dir)" | |
| - uses: actions/cache@v2 | |
| with: | |
| path: ${{ steps.yarn-cache.outputs.dir }} | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn- | |
| - run: npm install -g yarn | |
| - run: yarn install --frozen-lockfile | |
| - run: yarn run --silent benchmark | tee node-${{ matrix.node }}.txt | |
| env: | |
| ENVIRONMENT: node-${{ matrix.node }} | |
| - uses: actions/upload-artifact@v2 | |
| with: | |
| name: node-${{ matrix.node }}.txt | |
| path: node-${{ matrix.node }}.txt | |
| - if: github.ref == 'refs/heads/master' | |
| uses: rhysd/github-action-benchmark@v1 | |
| with: | |
| tool: 'benchmarkjs' | |
| output-file-path: node-${{ matrix.node }}.txt | |
| benchmark-data-dir-path: benchmark | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| auto-push: true |