-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (39 loc) · 1.3 KB
/
rerun-dirty-tests-index.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on:
push:
branches:
- trunk
pull_request:
branches:
- trunk
jobs:
rerun-dirty-tests-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy, llvm-tools-preview
- name: Install binutils
run: cargo install cargo-binutils
- name: Set old commit (push)
if: ${{ github.event.before != null }}
run: echo "OLD_COMMIT=${{ github.event.before }}" >> $GITHUB_ENV
- name: Set old commit (pull_request)
if: ${{ github.event.pull_request.base.sha != null }}
run: echo "OLD_COMMIT=${{ github.event.pull_request.base.sha }}" >> $GITHUB_ENV
- name: Print old commit
run: echo $OLD_COMMIT
- name: Rerun dirty tests
uses: dnbln/cargo-difftests-rerun-dirty-action@d2f90755508c86b96777add42ac79428209c5b06
with:
commit-to-diff-with: ${{ env.OLD_COMMIT }}
index-root: sample/cargo-difftests-sample-project/index_root
cargo-difftests-crate-path: cargo-difftests
env:
CARGO_DIFFTESTS_LOG: debug