From 7797c63d2b5f6e6fcd0c030cca40fc8110eb2606 Mon Sep 17 00:00:00 2001 From: Praveen Perera Date: Sat, 5 Oct 2024 20:17:29 -0500 Subject: [PATCH] Fix GitHub CI workflows --- .github/workflows/main.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aab49e3..6e31d3a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ env: jobs: build: - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest strategy: matrix: rust: @@ -15,16 +15,21 @@ jobs: - stable steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: Install toolchain - uses: actions-rs/toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1 with: - toolchain: ${{ matrix.rust }} + toolchain: stable + components: clippy override: true - - name: Run cargo clippy - run: cargo test + # clippy + - uses: clechasseur/rs-clippy-check@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - run: cargo clippy -- -D warnings - - name: Run cargo test + # test + - name: Cargo Test run: cargo test