From 7173a58a6207123ea8e1e2a16b4e8a4527980594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CA=87=CA=9E=CA=8Cp?= Date: Mon, 30 Dec 2019 21:13:07 -0800 Subject: [PATCH] simplify gh action --- .github/workflows/rust.yml | 67 ++++++-------------------------------- 1 file changed, 10 insertions(+), 57 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3f70679..2a9bdc7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -18,62 +18,15 @@ jobs: command: build args: --release - check: - name: check - runs-on: ubuntu-latest + build_and_test: + name: build and test steps: - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: actions-rs/cargo@v1 - with: - command: check - - test: - name: tests - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: actions-rs/cargo@v1 - with: - command: test - - fmt: - name: rust-fmt - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - run: rustup component add rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - clippy: - name: clippy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - run: rustup component add clippy - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + - name: check + run: cargo check --verbose + - name: clippy + run: cargo clippy -- -D warnings + - name: build + run: cargo build --verbose + - name: test + run: cargo test --verbose