aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2023-04-22 02:53:50 +0000
committerGitHub <noreply@github.com>2023-04-22 02:53:50 +0000
commitdad763e841713103eb14be0612bf3d68bb270aa4 (patch)
tree2de3257abaf69781039eaa03dcb7099958e31c51 /.github/workflows/ci.yml
parentMerge pull request #1107 from svenstaro/crt-static (diff)
parentUpdate checkout to v3 (diff)
downloadminiserve-dad763e841713103eb14be0612bf3d68bb270aa4.tar.gz
miniserve-dad763e841713103eb14be0612bf3d68bb270aa4.zip
Merge pull request #1108 from svenstaro/switch-to-dtolnay-rust-toolchain
Switch to dtolnay/rust-toolchain
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml27
1 files changed, 6 insertions, 21 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 840f43a..0519a2d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -12,34 +12,19 @@ jobs:
steps:
- name: Checkout code
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Setup Rust toolchain
- uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
- components: rustfmt, clippy
+ uses: dtolnay/rust-toolchain@stable
- name: cargo build
- uses: actions-rs/cargo@v1
- with:
- command: build
+ run: cargo build
- name: cargo test
- uses: actions-rs/cargo@v1
- with:
- command: test
+ run: cargo test
- name: cargo fmt
- uses: actions-rs/cargo@v1
- with:
- command: fmt
- args: --all -- --check
+ run: cargo fmt --all -- --check
- name: cargo clippy
- uses: actions-rs/cargo@v1
- with:
- command: clippy
- args: -- -D warnings
+ run: cargo clippy -- -D warnings