From 219843c2e45019b3f0166aace89b50b4ddddf55c Mon Sep 17 00:00:00 2001 From: yrp Date: Thu, 30 Nov 2023 11:30:53 -0800 Subject: [PATCH] update workflows --- .github/workflows/rust.yml | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 10f083d..eeb07fd 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,32 +1,14 @@ -name: Rust - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] +name: test +on: [push, pull_request] env: CARGO_TERM_COLOR: always jobs: - check: - name: bad64 + test: + name: cargo test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install latest stable - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - - name: Build - uses: actions-rs/cargo@v1 - with: - command: build - args: --verbose - - name: Test - uses: actions-rs/cargo@v1 - with: - command: test - args: --verbose \ No newline at end of file + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo test --verbose \ No newline at end of file