Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Dec 15, 2021
1 parent a84d17f commit 3e10004
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Expand Up @@ -166,12 +166,14 @@ jobs:
benchmark:
name: Run benchmark
runs-on: ubuntu-latest
env:
COMMITS_TO_TEST: ${{ github.event.pull_request.commits || 1 }}
steps:
- name: Checkout repo
uses: actions/checkout@v2

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

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

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

diff-npm-package:
name: Diff content of NPM package
runs-on: ubuntu-latest
env:
COMMITS_TO_TEST: ${{ github.event.pull_request.commits || 1 }}
steps:
- name: Checkout repo
uses: actions/checkout@v2

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

- name: Setup Node.js
uses: actions/setup-node@v2
Expand All @@ -207,9 +209,7 @@ jobs:
run: npm ci --ignore-scripts

- name: Generate report
run: 'node resources/diff-npm-package.js $BASE_COMMIT HEAD'
env:
BASE_COMMIT: ${{ github.event.pull_request.base.sha || 'HEAD~1' }}
run: 'node resources/diff-npm-package.js HEAD~$COMMITS_TO_TEST HEAD'

- name: Upload generated report
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 3e10004

Please sign in to comment.