-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #385 from Katka92/pact_tests
Update pact to v2 to support v3 schema
- Loading branch information
Showing
7 changed files
with
512 additions
and
142 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,8 +53,9 @@ jobs: | |
PACT_BROKER_USERNAME: ${{ secrets.PACT_BROKER_USERNAME }} | ||
PROVIDER_BRANCH: "main" | ||
run: | | ||
wget -qO- https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.92.0/pact-1.92.0-linux-x86_64.tar.gz | tar xz --one-top-level=./pactcli | ||
PATH=${PATH}:$(pwd)/pactcli/pact/bin | ||
go get github.com/pact-foundation/pact-go/[email protected] | ||
go install github.com/pact-foundation/pact-go/[email protected] | ||
sudo /home/runner/go/bin/pact-go -l DEBUG install | ||
echo "Running Pact tests from the \"$(git branch --show-current)\" brach." | ||
# Run Pact tests and publish results. Required variables to be set: | ||
# COMMIT_SHA sets the version | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,12 @@ jobs: | |
fi | ||
- name: Run Go Tests | ||
run: | | ||
# Temporarily adding a pact-go installation. | ||
# It should be gone once https://issues.redhat.com/browse/HAC-4879 is solved | ||
go get github.com/pact-foundation/pact-go/[email protected] | ||
go install github.com/pact-foundation/pact-go/[email protected] | ||
sudo /home/runner/go/bin/pact-go -l DEBUG install | ||
make test | ||
- name: Check if Manager Kustomize has the right image | ||
run: | | ||
|
@@ -186,9 +192,10 @@ jobs: | |
if: steps.cache-mod.outputs.cache-hit != 'true' | ||
- name: Test Pact contracts | ||
run: | | ||
wget -qO- https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.92.0/pact-1.92.0-linux-x86_64.tar.gz | tar xz --one-top-level=./pactcli | ||
PATH=${PATH}:$(pwd)/pactcli/pact/bin | ||
COMMIT_SHA=${COMMIT_SHA:0:7} | ||
go get github.com/pact-foundation/pact-go/[email protected] | ||
go install github.com/pact-foundation/pact-go/[email protected] | ||
sudo /home/runner/go/bin/pact-go -l DEBUG install | ||
COMMIT_SHA=${COMMIT_SHA:0:7} | ||
make pact | ||
kube-linter: | ||
runs-on: ubuntu-latest | ||
|
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
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
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
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
Oops, something went wrong.