diff --git a/.github/workflows/build-ffi.yml b/.github/workflows/build-ffi.yml deleted file mode 100644 index a75575cdd..000000000 --- a/.github/workflows/build-ffi.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Pact-Rust FFI Build - -on: [push, pull_request] - -jobs: - build: - runs-on: ${{ matrix.operating-system }} - strategy: - fail-fast: false - matrix: - operating-system: [ ubuntu-latest, windows-latest, macos-latest ] - rust: [ stable ] - env: - pact_do_not_track: true - steps: - - uses: actions/checkout@v3 - - run: rustc --version || true - shell: bash - - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - - name: Install shared mime info DB - if: runner.os == 'macOS' - run: brew install shared-mime-info - - uses: dtolnay/rust-toolchain@nightly - with: - toolchain: nightly - components: rustfmt - - name: Install doxygen - if: runner.os == 'Linux' - run: sudo apt-get install -y doxygen - - name: Build pact_ffi with CMake - run: ./ci-build.sh - working-directory: rust/pact_ffi - shell: bash - - name: Run the C FFI tests - if: runner.os == 'Linux' - working-directory: c/consumer-verification - run: | - sudo apt update - sudo apt install libcurl4-openssl-dev - /usr/bin/aclocal - autoconf - automake --add-missing - ./configure - make - src/consumer-verification basic ../../rust/target/debug/libpact_ffi.so - src/consumer-verification error ../../rust/target/debug/libpact_ffi.so diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 4c14b47b8..000000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Pact-Rust Build - -on: [push, pull_request] - -jobs: - build: - runs-on: ${{ matrix.operating-system }} - strategy: - matrix: - operating-system: [ ubuntu-latest, windows-latest, macos-latest ] - 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 - - name: Tests - run: cargo test - 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 diff --git a/.github/workflows/compatability-suite.yml b/.github/workflows/compatability-suite.yml deleted file mode 100644 index 644b35cbd..000000000 --- a/.github/workflows/compatability-suite.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Pact-Rust Compatibility Suite - -on: [push, pull_request] - -jobs: - v1: - runs-on: ubuntu-latest - env: - pact_do_not_track: true - steps: - - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@stable - - name: Run Cucumber - run: cargo test --test v1* - working-directory: compatibility-suite - v2: - runs-on: ubuntu-latest - env: - pact_do_not_track: true - steps: - - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@stable - - name: Run Cucumber - run: cargo test --test v2* - working-directory: compatibility-suite - v3: - runs-on: ubuntu-latest - env: - pact_do_not_track: true - steps: - - uses: actions/checkout@v2 - - uses: dtolnay/rust-toolchain@stable - - name: Run Cucumber - run: cargo test --test v3* - working-directory: compatibility-suite diff --git a/.github/workflows/issue-comment-created.yml b/.github/workflows/issue-comment-created.yml deleted file mode 100644 index 8d83e08a3..000000000 --- a/.github/workflows/issue-comment-created.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Issue Comment Created - -on: - issue_comment: - types: - - created - -jobs: - jira: - runs-on: ubuntu-latest - if: ${{ github.event.comment.body == '/jira ticket' }} - steps: - - run: echo ${{ github.event.comment.body }} - - - name: Login - uses: atlassian/gajira-login@v3 - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - - - name: SearchParam - run: echo 'summary ~ ${{ toJSON(github.event.issue.title)}} AND project=${{ secrets.JIRA_PROJECT }}' - - - name: Search - id: search - uses: tomhjp/gh-action-jira-search@v0.1.0 - with: - jql: 'summary ~ ${{ toJSON(github.event.issue.title)}} AND project=${{ secrets.JIRA_PROJECT }}' - - - name: Log - run: echo "Found issue ${{ steps.search.outputs.issue }}" - - - name: Create - id: create - if: steps.search.outputs.issue == '' - uses: atlassian/gajira-create@v3 - with: - project: ${{ secrets.JIRA_PROJECT }} - issuetype: Task - summary: '${{ github.event.repository.name }}: ${{ github.event.issue.title }}' - description: | - *Issue Link:* ${{ github.event.issue.html_url }} - - ${{ github.event.issue.body }} - fields: '{"customfield_10006": ${{ toJSON(secrets.JIRA_EPIC_TICKET) }}, "customfield_17401":{"value":${{ toJSON( secrets.JIRA_LAYER_CAKE )}}}}' - - - name: Add Comment - if: steps.search.outputs.issue == '' && steps.create.outputs.issue != '' - uses: actions/github-script@v5 - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: '👋 Thanks, Jira [${{steps.create.outputs.issue}}] ticket created.' - }) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 02f4c3c2e..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,81 +0,0 @@ -name: Release workflow - -on: - release: - types: [published] - -jobs: - build-release: - runs-on: ${{ matrix.operating-system }} - strategy: - matrix: - operating-system: [ubuntu-20.04, windows-latest, macos-latest] - env: - pact_do_not_track: true - steps: - - uses: actions/checkout@v3 - - name: Install stable Rust toolchain - if: runner.os == 'Linux' - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - targets: aarch64-unknown-linux-gnu,x86_64-unknown-linux-musl - - name: Install stable Rust toolchain - if: runner.os == 'Windows' - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - targets: aarch64-pc-windows-msvc,x86_64-pc-windows-msvc - - name: Install stable Rust toolchain - if: runner.os == 'MacOS' - uses: dtolnay/rust-toolchain@stable - with: - toolchain: stable - targets: aarch64-apple-darwin,x86_64-apple-darwin - - if: startsWith(github.ref, 'refs/tags/pact_mock_server_cli') && runner.os == 'Linux' - run: ./release-linux.sh - working-directory: rust/pact_mock_server_cli - - if: startsWith(github.ref, 'refs/tags/pact_mock_server_cli') && runner.os == 'Windows' - run: ./release-win.sh - shell: bash - working-directory: rust/pact_mock_server_cli - - if: startsWith(github.ref, 'refs/tags/pact_mock_server_cli') && runner.os == 'macOS' - run: ./release-osx.sh - shell: bash - working-directory: rust/pact_mock_server_cli - - if: startsWith(github.ref, 'refs/tags/pact_verifier_cli') && runner.os == 'Linux' - run: ./release-linux.sh - working-directory: rust/pact_verifier_cli - - if: startsWith(github.ref, 'refs/tags/pact_verifier_cli') && runner.os == 'Windows' - run: ./release-win.sh - shell: bash - working-directory: rust/pact_verifier_cli - - if: startsWith(github.ref, 'refs/tags/pact_verifier_cli') && runner.os == 'macOS' - run: ./release-osx.sh - shell: bash - working-directory: rust/pact_verifier_cli - - if: startsWith(github.ref, 'refs/tags/libpact_ffi') && runner.os == 'Linux' - run: ./release-linux.sh - working-directory: rust/pact_ffi - - if: startsWith(github.ref, 'refs/tags/libpact_ffi') && runner.os == 'Windows' - run: ./release-win.sh - shell: bash - working-directory: rust/pact_ffi - - if: startsWith(github.ref, 'refs/tags/libpact_ffi') && runner.os == 'macOS' - run: ./release-osx.sh - shell: bash - working-directory: rust/pact_ffi - - name: Upload the artifacts - if: startsWith(github.ref, 'refs/tags/libpact_ffi') || startsWith(github.ref, 'refs/tags/pact_verifier_cli') || startsWith(github.ref, 'refs/tags/pact_mock_server_cli') - uses: actions/upload-artifact@v3.1.2 - with: - name: release-artifacts - path: rust/target/artifacts - - name: Upload Release Assets - if: startsWith(github.ref, 'refs/tags/libpact_ffi') || startsWith(github.ref, 'refs/tags/pact_verifier_cli') || startsWith(github.ref, 'refs/tags/pact_mock_server_cli') - uses: svenstaro/upload-release-action@2.5.0 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: rust/target/artifacts/* - file_glob: true - tag: ${{ github.ref }} diff --git a/.github/workflows/smartbear-issue-label-added.yml b/.github/workflows/smartbear-issue-label-added.yml deleted file mode 100644 index 8b68fed74..000000000 --- a/.github/workflows/smartbear-issue-label-added.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: SmartBear Supported Issue Label Added - -on: - issues: - types: - - labeled - -jobs: - call-workflow: - uses: pact-foundation/.github/.github/workflows/smartbear-issue-label-added.yml@master - secrets: inherit diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml deleted file mode 100644 index eb5ec3054..000000000 --- a/.github/workflows/triage.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Triage Issue - -on: - issues: - types: - - opened - - labeled - pull_request: - types: - - labeled - -jobs: - call-workflow: - uses: pact-foundation/.github/.github/workflows/triage.yml@master - secrets: inherit diff --git a/.github/workflows/trigger_pact_docs_update.yml b/.github/workflows/trigger_pact_docs_update.yml deleted file mode 100644 index 8129910ae..000000000 --- a/.github/workflows/trigger_pact_docs_update.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Trigger update to docs.pact.io - -on: - push: - branches: - - master - paths: - - '**.md' - -jobs: - run: - runs-on: ubuntu-latest - steps: - - name: Trigger docs.pact.io update workflow - run: | - curl -X POST https://api.github.com/repos/pact-foundation/docs.pact.io/dispatches \ - -H 'Accept: application/vnd.github.everest-preview+json' \ - -H "Authorization: Bearer $GITHUB_TOKEN" \ - -d '{"event_type": "pact-rust-docs-updated"}' - env: - GITHUB_TOKEN: ${{ secrets.GHTOKENFORTRIGGERINGPACTDOCSUPDATE }}