Update dependency karma to v6.3.16 [SECURITY] #284
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
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 |