Skip to content

Reapply "chore(ci): refactor release pipeline" #3519

Reapply "chore(ci): refactor release pipeline"

Reapply "chore(ci): refactor release pipeline" #3519

Workflow file for this run

name: Pact-Rust Build
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
RUST_BACKTRACE: "1"
RUST_LOG: "debug"
PACT_DO_NOT_TRACK: "true"
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest, windows-latest, macos-13, macos-14 ]
rust: [ stable ]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: Install shared mime info DB
if: runner.os == 'macOS'
run: brew install shared-mime-info
- name: Tests
run: cargo test
working-directory: rust
- name: Run mock_server_logs test
run: cargo test -p pact_ffi returns_mock_server_logs -- --nocapture --include-ignored
working-directory: rust
- name: Clippy
if: runner.os == 'Linux'
run: cargo clippy
working-directory: rust
musl-build:
runs-on: ubuntu-latest
container:
image: pactfoundation/rust-musl-build
steps:
- uses: actions/checkout@v3
- name: Tests
run: cargo test
working-directory: rust
check-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: cargo check --no-default-features
working-directory: rust