Skip to content

Commit

Permalink
ci: rename rust workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Mikko Murto <[email protected]>
  • Loading branch information
mmurto committed Apr 19, 2022
1 parent e986f14 commit 00aeabc
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/ci.yml → .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: MIT

name: CI
name: Rust

on:
push:
Expand All @@ -20,39 +20,42 @@ jobs:
- uses: actions/checkout@v2
name: Checkout
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
name: Cargo build
if: always()
id: build
with:
command: test
args: --no-run
sharedKey: rust
- uses: actions-rs/cargo@v1
name: Cargo test
if: always()
id: test
with:
command: test
command: test
args: -- --include-ignored

Clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout
- uses: Swatinem/rust-cache@v1
with:
sharedKey: rust
- uses: actions-rs/cargo@v1
name: Cargo clippy
if: always()
id: clippy
with:
command: clippy
args: -- -D warnings

Format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout
- uses: Swatinem/rust-cache@v1
with:
sharedKey: rust
- uses: actions-rs/cargo@v1
name: Cargo fmt
if: always()
id: format
with:
command: fmt
args: --all -- --check

Reuse:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1

0 comments on commit 00aeabc

Please sign in to comment.