Skip to content

Commit

Permalink
update actions: it works!
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Jul 6, 2022
1 parent f130d7b commit 9776c32
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,19 @@ jobs:
- uses: actions/checkout@v3
- name: Set up environment
uses: ./.github/actions/setup
# - uses: actions/download-artifact@v3
# with:
# name: gasreport
- name: "Download artifact"
- name: 'Download reference report'
run: |
RUN_ID=`gh run list --repo ${{ github.repository }} --workflow ${{ github.workflow }} --json databaseId --jq '.[0].databaseId'`
gh run download --repo ${{ github.repository }} ${RUN_ID} -n gasreport
RUN_ID=`gh run list --repo ${{ github.repository }} --branch ${{ github.base_ref }} --workflow ${{ github.workflow }} --json databaseId --jq '.[0].databaseId'`
gh run download ${RUN_ID} --repo ${{ github.repository }} -n gasreport
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm run test
- name: 'Generate new report'
run: npm run test
env:
GAS: true
GAS_REPORT: HEAD.gasreport.log~
- run: node scripts/checks/compareGasReports.js HEAD.gasreport.log~ ${{ github.base_ref }}.gasreport.log
- name: 'Compare reports'
run: node scripts/checks/compareGasReports.js HEAD.gasreport.log~ ${{ github.base_ref }}.gasreport.log

gasCache:
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 9776c32

Please sign in to comment.