diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 6f1729b..2958ca3 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -4,7 +4,7 @@ on: pull_request: branches: [ main, refacto ] -name: Continuous integration +name: Rust CI jobs: check: @@ -24,3 +24,28 @@ jobs: shell: bash run: | cargo check + - name: clippy + shell: bash + run: | + clippy -- -D warnings + - name: fmt + shell: bash + run: | + cargo fmt --all -- --check + test: + name: Test + defaults: + run: + working-directory: ./rust + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + rust: [stable] + steps: + - uses: actions/checkout@v2 + - uses: ./.github/actions/rust_build + - name: check + shell: bash + run: | + cargo test