2022-04-04 01:58:51 +02:00
|
|
|
name: CI
|
|
|
|
|
2024-06-11 03:50:23 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
2022-04-04 01:58:51 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
rust:
|
|
|
|
name: Build and Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
|
|
|
|
- run: cargo build --all-features
|
|
|
|
|
|
|
|
- run: cargo test
|
|
|
|
|
|
|
|
rustfmt:
|
|
|
|
name: Rustfmt
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
components: rustfmt
|
|
|
|
|
|
|
|
- run: cargo fmt -- --check
|
|
|
|
|
|
|
|
clippy:
|
|
|
|
name: Clippy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
components: clippy
|
|
|
|
|
2022-04-23 00:04:26 +02:00
|
|
|
- run: cargo clippy -- -D warnings
|