From 675a33c06efcac8e7fef1c6b7314a3e007a239cb Mon Sep 17 00:00:00 2001 From: ArcticLampyrid Date: Thu, 14 Mar 2024 16:56:45 +0800 Subject: [PATCH] ci: add test job --- .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..f56a165 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Test + +on: + push: + branches: + - "**" + pull_request: + branches: + - "**" + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Rust toolchain + uses: moonrepo/setup-rust@v1 + with: + channel: stable + bins: cargo-hack + env: + GITHUB_TOKEN: ${{ github.token }} + - name: Test + run: cargo hack test --all-targets --each-feature --verbose