summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2021-02-14 15:55:30 +0000
committerEllie Huxtable <ellie@elliehuxtable.com>2021-02-14 16:02:36 +0000
commitf3b0006754d382aa6fc46fa5d196acb2340a277f (patch)
tree3ebbb75a0954087960a5f9df474a6fcb5f44173b
parent6cd7ca9602877db1d49f83b7e948e5c26fb19daf (diff)
Update rust.yml
-rw-r--r--.github/workflows/rust.yml28
1 files changed, 20 insertions, 8 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 59974855..d51b9413 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -23,9 +23,7 @@ jobs:
override: true
- name: Run cargo build
- uses: actions-rs/cargo@v1
- with:
- command: build
+ run: cargo build
test:
runs-on: ubuntu-latest
@@ -40,9 +38,7 @@ jobs:
override: true
- name: Run cargo test
- uses: actions-rs/cargo@v1
- with:
- command: test
+ run: cargo test
clippy:
runs-on: ubuntu-latest
@@ -57,5 +53,21 @@ jobs:
override: true
components: rustfmt
- - name: Run cargo test
- run: rustfmt --check
+ - name: Run clippy
+ run: cargo clippy
+
+ format:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install latest nightly
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: nightly
+ override: true
+ components: rustfmt
+
+ - name: Format
+ run: cargo fmt -- --check