-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Testsuite Preview github action
Signed-off-by: George Cosma <[email protected]>
- Loading branch information
1 parent
f3cf3dc
commit f8aa4b3
Showing
7 changed files
with
641 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Testsuite Preview | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
ts_preview: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
RUSTFLAGS: "-D warnings" | ||
RUSTDOCFLAGS: "-D warnings" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: main | ||
submodules: true | ||
|
||
- name: Generate old report | ||
run: | | ||
TESTSUITE_SAVE=1 cargo test -- spec_tests --show-output | ||
cp testsuite_results.json old.json | ||
- name: Switch | ||
run: | | ||
cargo clean | ||
rm -f Cargo.lock | ||
git checkout ${{ github.event.pull_request.head.sha }} | ||
- name: Generate new report | ||
run: | | ||
TESTSUITE_SAVE=1 cargo test -- spec_tests --show-output | ||
cp testsuite_results.json new.json | ||
- name: Compare reports | ||
run: python3 ./ci_tools/compare_testsuite.py old.json new.json > testsuite_report.md | ||
|
||
- name: Sticky Pull Request Comment | ||
uses: marocchino/[email protected] | ||
with: | ||
header: testsuite | ||
path: testsuite_report.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/target | ||
result | ||
whitepaper/main.pdf | ||
testsuite_results.json |
Oops, something went wrong.