Skip to content

Commit

Permalink
Matched Ion-test-driver spec (Ion-test-driver issue #15).
Browse files Browse the repository at this point in the history
  • Loading branch information
cheqianh authored Dec 1, 2020
1 parent 96e60a6 commit b3f0f49
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ion-test-driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ jobs:
run: pip3 install -r ion-test-driver/requirements.txt && pip3 install -e ion-test-driver

- name: Get main branch HEAD sha
run: cd ion-js && echo `git rev-parse --short HEAD` && echo "sha=`git rev-parse --short HEAD`" >> $GITHUB_ENV
run: cd ion-js && echo `git rev-parse --short=7 HEAD` && echo "main=`git rev-parse --short=7 HEAD`" >> $GITHUB_ENV

- name: Get current commit sha
run: cd ion-js && echo `git rev-parse --short=7 ${{ github.event.pull_request.head.sha }}`
&& echo "cur=`git rev-parse --short=7 ${{ github.event.pull_request.head.sha }}`" >> $GITHUB_ENV

- name: Run ion-test-driver
run: python3 ion-test-driver/amazon/iontest/ion_test_driver.py -o output
Expand All @@ -46,9 +50,7 @@ jobs:
continue-on-error: true
id: result-diff
run: python3 ion-test-driver/amazon/iontest/ion_test_driver.py -R
ion-js,https://github.com/amzn/ion-js,$sha
ion-js,${{ github.event.pull_request.head.repo.html_url }},${{ github.event.pull_request.head.sha }}
output/results/ion-test-driver-results.ion
ion-js,$main ion-js,$cur output/results/ion-test-driver-results.ion

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

0 comments on commit b3f0f49

Please sign in to comment.