Skip to content

Commit

Permalink
chore(ci): checkout pull request HEAD commit
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Feb 20, 2022
1 parent 2ad4e51 commit 4403240
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,16 @@ jobs:
toolchain: nightly
override: true
- name: Checkout
if: github.event_name != 'pull_request'
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout
if: github.event_name == 'pull_request'
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Run tests
run: |
export CARGO_INCREMENTAL=0
Expand Down

0 comments on commit 4403240

Please sign in to comment.