Skip to content

Merge branch 'develop' into dependabot/github_actions/develop/EmbarkS… #732

Merge branch 'develop' into dependabot/github_actions/develop/EmbarkS…

Merge branch 'develop' into dependabot/github_actions/develop/EmbarkS… #732

Workflow file for this run

name: sarchive tests
on: [push, pull_request]
jobs:
cargo-deny:
runs-on: ubuntu-latest
strategy:
matrix:
checks:
- advisories
- bans
# Prevent sudden announcement of a new advisory from failing ci:
continue-on-error: ${{ matrix.checks == 'advisories' }}
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check ${{ matrix.checks }}
log-level: warn
arguments: --all-features
fmt:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
fail-fast: false
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install toolchain
uses: actions-rs/[email protected]
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
override: true
- name: Run cargo fmt
uses: actions-rs/[email protected]
with:
command: fmt
args: --all -- --check
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- nightly
features:
- --features kafka
- --no-default-features
- --all-features
fail-fast: false
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install toolchain
uses: actions-rs/[email protected]
with:
toolchain: ${{ matrix.rust }}
override: true
- run: sudo apt-get install libsasl2-dev libsasl2-2
- name: Run cargo test
uses: actions-rs/[email protected]
with:
command: test
args: ${{ matrix.features }}