chore: clone forks, rather than using toml deps #203
Workflow file for this run
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: Pact-Rust Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-latest, windows-latest, macos-12 ] | |
rust: [ stable ] | |
env: | |
pact_do_not_track: true | |
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 | |
# TODO:- override via Cargo.toml preferably | |
- name: clone pact-plugin-driver & pact-core-mock-server forks | |
run: | | |
cd .. | |
git clone -b fix/logging_min git@github.com:YOU54F/pact-plugins.git | |
git clone -b fix/logging_min git@github.com:YOU54F/pact-core-mock-server.git | |
- name: Tests | |
run: cargo test | |
working-directory: rust | |
env: | |
RUST_LOG: debug | |
RUST_BACKTRACE: 1 | |
- name: Run mock_server_logs test | |
run: cargo test -p pact_ffi returns_mock_server_logs -- --nocapture --include-ignored | |
working-directory: rust | |
env: | |
RUST_LOG: debug | |
RUST_BACKTRACE: 1 | |
- name: Build Components | |
run: cargo build | |
working-directory: rust | |
- name: Clippy | |
if: runner.os == 'Linux' | |
run: cargo clippy | |
working-directory: rust | |
musl-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
docker run --rm --user "$(id -u)":"$(id -g)" -v $(pwd):/workspace -w /workspace/rust -t -e TZ=UTC pactfoundation/rust-musl-build ./scripts/ci-musl-build.sh | |
check-features: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cargo check --no-default-features | |
working-directory: rust | |