mirror of
https://github.com/philmmanjaro/alma.git
synced 2025-07-24 05:59:28 +02:00
* ci: improve - run on all branches to test things - no cargo color, it destroys actions-rs/cargo features - update versions * refactor(lint): fix clippy issues * refactor(lint): fix more clippy issues
32 lines
678 B
YAML
32 lines
678 B
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
profile: minimal
|
|
override: true
|
|
components: rustfmt, clippy
|
|
- uses: actions-rs/cargo@v1
|
|
name: Check format
|
|
with:
|
|
command: fmt
|
|
args: --all -- --check
|
|
- uses: actions-rs/cargo@v1
|
|
name: Run clippy
|
|
with:
|
|
command: clippy
|
|
args: --all-targets --locked -- -D warnings
|
|
- uses: actions-rs/cargo@v1
|
|
name: Run tests
|
|
with:
|
|
command: test
|