From 34db837a89a2f1fc0b85317b194875f01cfeb866 Mon Sep 17 00:00:00 2001 From: Carlos Alejandro Gutierrez Sandoval Date: Sat, 7 Sep 2024 22:17:35 -0600 Subject: [PATCH] bring back CI tests --- .github/workflows/rust-ci.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index f767aa2..3be5d0c 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -1,6 +1,12 @@ -on: push +on: + pull_request -name: Rustfmt +name: + Rust + +env: + CARGO_TERM_COLOR: always + RUSTFLAGS: -D warnings jobs: format: @@ -13,3 +19,19 @@ jobs: - uses: mbrobbel/rustfmt-check@master with: token: ${{ secrets.GITHUB_TOKEN }} + + test: + runs-on: ubuntu-latest + needs: format + strategy: + matrix: + toolchain: + - stable + - nightly + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: cargo check + - run: cargo build --verbose + - run: cargo test --verbose