diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..a289351 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,34 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + container: + image: rust:1.81-alpine3.20 + + steps: + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 #v4.2.0 + + - name: Build + run: cargo build --release --verbose + + - name: Run tests + run: cargo test --all-features --verbose + + - name: Audit + run: | + cargo install --version 0.20.1 cargo-audit + cargo audit + + - name: Lint + run: cargo clippy -- -D warnings