From 3f0afca5ac24bc967f4852acc801fe557af066c7 Mon Sep 17 00:00:00 2001 From: Diazepam <77@diazepam.cc> Date: Thu, 7 Nov 2024 14:09:33 +0800 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..fc796a8 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: Test + +on: + push: + branches: [ "master" ] + paths-ignore: [ "README.md", "LICENSE" ] + pull_request: + branches: [ "master" ] + paths-ignore: [ "README.md", "LICENSE" ] + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + RUST_BACKTRACE: 1 + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Rust toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: stable + + - name: Test hashes backend + run: cargo test --features hashes_backend + + - name: Test ring backend + run: cargo test --no-default-features --features ring_backend