Skip to content

Commit

Permalink
Write to text files?
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners committed Mar 10, 2020
1 parent cde0067 commit 845aa7a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/bench.yml
Expand Up @@ -8,14 +8,19 @@ jobs:
name: benchmark current
runs-on: ubuntu-latest
steps:
- run: |
echo ${{ gihub.base_ref }} > base_ref
if [[ ! -s base_ref ]]; then
echo 'no-target' > base_ref
fi
- uses: actions/checkout@v2
with:
ref: ${{ github.base_ref }}
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm i
- run: npm run bench | tee ${{ github.base_ref }}.txt
- run: npm run bench | tee $(basename $(cat base_ref)).txt

benchmark_branch:
name: benchmark branch
Expand All @@ -26,4 +31,4 @@ jobs:
with:
node-version: 12
- run: npm i
- run: npm run bench | tee ${{ github.ref }}.txt
- run: npm run bench | tee $(basename ${{ github.ref }}).txt

0 comments on commit 845aa7a

Please sign in to comment.