Add integration test for the webhooks extension #62
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
name: CI | |
on: | |
push: | |
branches: [ "main", "3.x" ] | |
pull_request: | |
branches: [ "main", "3.x" ] | |
workflow_dispatch: | |
jobs: | |
docker-build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
versions: | |
- CONTEXT: . | |
TAGS: | |
- wiremock/wiremock:test | |
- CONTEXT: alpine | |
TAGS: | |
- wiremock/wiremock:test-alpine | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Checkout sources | |
uses: actions/checkout@main | |
# TODO: Re-enable if rate limit becomes an issues | |
# - name: Login to Docker Hub | |
# uses: docker/login-action@v2 | |
# with: | |
# username: wiremock | |
# password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | |
- name: Build Wiremock Docker image | |
uses: docker/build-push-action@v4 | |
with: | |
context: ${{ matrix.versions.CONTEXT }} | |
load: true | |
file: ${{ matrix.versions.CONTEXT }}/Dockerfile | |
tags: ${{ matrix.versions.TAGS[0] }} | |
- name: Build Wiremock Docker image | |
run: docker buildx build --tag ${{ matrix.versions.TAGS[0] }} --load ${{ matrix.versions.CONTEXT }} --file ${{ matrix.versions.CONTEXT }}/Dockerfile | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: 'temurin' | |
cache: maven | |
- name: Run integration test | |
working-directory: test/integration-tests | |
run: mvn -B -ntp package verify --file pom.xml -DargLine="-Dit.wiremock-image=${{ matrix.versions.TAGS[0] }}" |