generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8350fc2
commit eef648e
Showing
1 changed file
with
56 additions
and
0 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 |
---|---|---|
|
@@ -56,3 +56,59 @@ jobs: | |
run: cargo fmt --check | ||
- name: Lint | ||
run: just lint | ||
|
||
kotlin-test-vectors: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "adopt" | ||
java-version: "11" | ||
- name: Build and Test Kotlin Project | ||
run: | | ||
cd bound/kt/ | ||
mvn test --batch-mode | ||
- name: Upload Kotlin Test Results | ||
uses: actions/[email protected] | ||
with: | ||
name: kotlin-test-results | ||
path: bound/kt/target/surefire-reports/*.xml | ||
|
||
rust-test-vectors: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Init Hermit | ||
uses: cashapp/activate-hermit@v1 | ||
with: | ||
cache: true | ||
- name: Setup | ||
run: just setup | ||
- name: Install Nextest | ||
run: cargo install cargo-nextest | ||
- name: Create nextest.toml | ||
run: | | ||
echo '[profile.ci.junit]' > nextest.toml | ||
echo 'path = "junit.xml"' >> nextest.toml | ||
echo 'store-success-output = true' >> nextest.toml | ||
echo 'store-failure-output = true' >> nextest.toml | ||
- name: Run Rust Tests | ||
run: | | ||
mkdir -p test-results | ||
cargo nextest run --profile ci --config-file ./nextest.toml | ||
- name: Modify testsuite name in XML for test runner consumption | ||
run: | | ||
sed -i '' 's/<testsuite name="web5"/<testsuite name="Web5TestVectorsProtocolTest"/' target/nextest/ci/junit.xml | ||
- name: Move Test Results | ||
run: mv target/nextest/ci/junit.xml test-results/rust-test-results.xml | ||
- name: Upload Rust Test Results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: rust-test-results | ||
path: test-results/rust-test-results.xml |