Skip to content

Commit

Permalink
chore: try rerun dirty tests action
Browse files Browse the repository at this point in the history
  • Loading branch information
dnbln committed Feb 6, 2024
1 parent cc7bdb0 commit 4f59345
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/rerun-dirty-tests-index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
push:
branches:
- trunk
pull_request:
branches:
- trunk

jobs:
rerun-dirty-tests-test:
runs-on: ubuntu-latest
steps:
- 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 ${{ github.env.OLD_COMMIT }}

- uses: dnbln/cargo-difftests-rerun-dirty-action@2619b6ff4cc3aee7a7d9812dca49022a3eeb17af
with:
commit-to-diff-with: ${{ github.env.OLD_COMMIT }}
index-root: sample/cargo-difftests-sample-project/index_root
1 change: 0 additions & 1 deletion sample/cargo-difftests-sample-project/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/target
/index_root
1 change: 1 addition & 0 deletions sample/cargo-difftests-sample-project/index_root/test_add
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"files":["sample/cargo-difftests-sample-project/tests/tests.rs","cargo-difftests-testclient/src/compile_index_and_clean_config.rs","cargo-difftests-testclient/src/lib.rs","cargo-difftests-testclient/src/groups.rs","sample/cargo-difftests-sample-project/src/lib.rs"],"test_run":"2024-02-06T11:28:55.727104100Z","test_desc":[{"bin_path":"","extra":{"bin_name":null,"crate_name":"tests","pkg_name":"cargo-difftests-sample-project","test_name":"test_add"}}]}
1 change: 1 addition & 0 deletions sample/cargo-difftests-sample-project/index_root/test_div
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"files":["sample/cargo-difftests-sample-project/tests/tests.rs","cargo-difftests-testclient/src/compile_index_and_clean_config.rs","cargo-difftests-testclient/src/lib.rs","cargo-difftests-testclient/src/groups.rs","sample/cargo-difftests-sample-project/src/advanced_arithmetic.rs"],"test_run":"2024-02-06T11:28:57.156589800Z","test_desc":[{"bin_path":"","extra":{"bin_name":null,"crate_name":"tests","pkg_name":"cargo-difftests-sample-project","test_name":"test_div"}}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"files":["sample/cargo-difftests-sample-project/tests/tests.rs","cargo-difftests-testclient/src/compile_index_and_clean_config.rs","cargo-difftests-testclient/src/lib.rs","cargo-difftests-testclient/src/groups.rs","sample/cargo-difftests-sample-project/src/advanced_arithmetic.rs"],"test_run":"2024-02-06T11:28:58.505361600Z","test_desc":[{"bin_path":"","extra":{"bin_name":null,"crate_name":"tests","pkg_name":"cargo-difftests-sample-project","test_name":"test_div_2"}}]}
1 change: 1 addition & 0 deletions sample/cargo-difftests-sample-project/index_root/test_mul
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"files":["sample/cargo-difftests-sample-project/tests/tests.rs","cargo-difftests-testclient/src/compile_index_and_clean_config.rs","cargo-difftests-testclient/src/lib.rs","cargo-difftests-testclient/src/groups.rs","sample/cargo-difftests-sample-project/src/advanced_arithmetic.rs"],"test_run":"2024-02-06T11:28:59.432625600Z","test_desc":[{"bin_path":"","extra":{"bin_name":null,"crate_name":"tests","pkg_name":"cargo-difftests-sample-project","test_name":"test_mul"}}]}
1 change: 1 addition & 0 deletions sample/cargo-difftests-sample-project/index_root/test_sub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"files":["sample/cargo-difftests-sample-project/tests/tests.rs","cargo-difftests-testclient/src/compile_index_and_clean_config.rs","cargo-difftests-testclient/src/lib.rs","cargo-difftests-testclient/src/groups.rs","sample/cargo-difftests-sample-project/src/lib.rs"],"test_run":"2024-02-06T11:29:00.393606500Z","test_desc":[{"bin_path":"","extra":{"bin_name":null,"crate_name":"tests","pkg_name":"cargo-difftests-sample-project","test_name":"test_sub"}}]}

0 comments on commit 4f59345

Please sign in to comment.