chore: debugging the pact file transform script #224
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
on: [push, pull_request] | |
name: Test | |
jobs: | |
test: | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
go-version: [1.20.x] | |
# os: [ubuntu-latest, macos-latest, windows-latest] | |
# runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set Golang shared lib directory for GH Actions | |
run: | | |
echo "LD_LIBRARY_PATH=/tmp" >> $GITHUB_ENV | |
echo "PACT_GO_LIB_DOWNLOAD_PATH=/tmp" >> $GITHUB_ENV | |
echo "LOG_LEVEL=trace" >> $GITHUB_ENV | |
echo "GITHUB_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: hashicorp/setup-terraform@v1 | |
with: | |
terraform_version: 0.14.5 | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Test | |
run: make | |
env: | |
PACT_BROKER_TOKEN: "${{ secrets.PACTFLOW_PACT_BROKER_TOKEN }}" | |
PACT_BROKER_BASE_URL: "${{ secrets.PACTFLOW_PACT_BROKER_BASE_URL }}" | |
ACCEPTANCE_PACT_BROKER_TOKEN: "${{ secrets.ACCEPTANCE_PACT_BROKER_TOKEN }}" | |
ACCEPTANCE_PACT_BROKER_BASE_URL: "${{ secrets.ACCEPTANCE_PACT_BROKER_BASE_URL }}" | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: logs | |
path: acceptance/**/log/*.log |