From 3ddcba8d7a4f931e3f5571d7040b590e8384198f Mon Sep 17 00:00:00 2001 From: Toshiki Teramura Date: Sat, 20 Jun 2020 17:54:44 +0900 Subject: [PATCH] Update CI settings --- .github/workflows/rust.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1b5bf7e..78808cb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,13 +1,25 @@ name: Rust -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: {} jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - uses: actions-rs/cargo@v1 + with: + command: test + + check-format: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: -- --check