Skip to content

ROX-31495: wiremock for central #2

ROX-31495: wiremock for central

ROX-31495: wiremock for central #2

Workflow file for this run

name: WireMock Smoke Test
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
wiremock-smoke-test:
name: WireMock Smoke Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Install protoc
run: |
PROTOC_VERSION=3.20.1
PROTOC_ZIP=protoc-${PROTOC_VERSION}-linux-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP}
sudo unzip -o ${PROTOC_ZIP} -d /usr/local bin/protoc
sudo unzip -o ${PROTOC_ZIP} -d /usr/local 'include/*'
rm -f ${PROTOC_ZIP}
- name: Download Go dependencies
run: go mod download
- name: Setup proto files from go mod cache
run: ./scripts/setup-proto-files.sh
- name: Run smoke test
run: ./scripts/smoke-test-wiremock.sh
- name: Upload logs on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: wiremock-logs
path: wiremock/wiremock.log
if-no-files-found: ignore