Merge branch 'develop' into dependabot/github_actions/develop/EmbarkS… #732
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |