From eef648e91a521f2bb78117aeb87c67c2d67245fb Mon Sep 17 00:00:00 2001 From: Neal Date: Tue, 6 Aug 2024 11:20:36 -0700 Subject: [PATCH] add ci --- .github/workflows/ci.yml | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e504e1bf..b06fc3d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/upload-artifact@v4.0.0 + 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/