Fixing C-API calls to resolve some failures with local/offline databases #120
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: Compile and run tests | |
on: [push, pull_request] | |
jobs: | |
lint-and-build: | |
runs-on: ubuntu-latest | |
container: "quay.io/centos/centos:stream9" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 📦 Install librpm dependencies | |
run: | | |
dnf install -y rpm-devel gcc clang-devel rustc cargo clippy rustfmt | |
dnf -y clean all | |
- name: 📎 Run Linters | |
run: | | |
cargo clippy --release -- -D warnings | |
cargo fmt --all -- --check | |
cargo doc --no-deps | |
- name: 🔨 Build (Debug) | |
run: cargo build --verbose | |
- name: 🔨 Build (Release) | |
run: cargo build --release --verbose | |
- name: 🧪 Run Unit Tests | |
run: cargo test --release --bins --lib | |
integration-tests: | |
strategy: | |
matrix: | |
container: ["registry.fedoraproject.org/fedora:38", "quay.io/centos/centos:stream9"] | |
container: ${{ matrix.container }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 📦 Install librpm dependencies | |
run: | | |
dnf install -y rpm-devel gcc clang-devel rustc cargo clippy rustfmt | |
dnf -y clean all | |
- name: 🧪 Run Integration Tests | |
run: | | |
cargo test --test '*' --release --all-features |