Skip to content

Merge pull request #5 from sine-fdn/dependabot/cargo/serde-1.0.214 #21

Merge pull request #5 from sine-fdn/dependabot/cargo/serde-1.0.214

Merge pull request #5 from sine-fdn/dependabot/cargo/serde-1.0.214 #21

on: [push]
name: PACT Data Model CI
jobs:
build_and_test:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test
working-directory: ./pact-data-model
run: |
cargo build
cargo test
cargo clippy -- -Dwarnings
generate_schema:
runs-on: ubuntu-latest
needs: build_and_test
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Generate schema
run: |
cargo run --bin pact-data-model