Skip to content

Commit

Permalink
gh/actions: run benchmark and NPM diff on correct base commits
Browse files Browse the repository at this point in the history
Fixes #3371
  • Loading branch information
IvanGoncharov committed Dec 15, 2021
1 parent 95a85f7 commit 0dfe79e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Expand Up @@ -169,8 +169,9 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Deepen cloned repo
run: "git fetch --deepen=${{ github.event.pull_request.commits || 1 }}"

- name: Setup Node.js
uses: actions/setup-node@v2
Expand All @@ -182,16 +183,19 @@ jobs:
run: npm ci --ignore-scripts

- name: Run Benchmark
run: 'npm run benchmark -- --revs HEAD HEAD~1'
run: 'npm run benchmark -- --revs HEAD $BASE_COMMIT'
env:
BASE_COMMIT: ${{ github.event.pull_request.base.sha || 'HEAD~1' }}

diff-npm-package:
name: Diff content of NPM package
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Deepen cloned repo
run: "git fetch --deepen=${{ github.event.pull_request.commits || 1 }}"

- name: Setup Node.js
uses: actions/setup-node@v2
Expand Down

0 comments on commit 0dfe79e

Please sign in to comment.