Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2 to 3. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
61 lines
2.2 KiB
YAML
61 lines
2.2 KiB
YAML
name: "Pull requests build"
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- '.txt'
|
|
- 'LICENSE'
|
|
- 'docs/**'
|
|
|
|
jobs:
|
|
pr-build:
|
|
if: >
|
|
github.event_name == 'pull_request' && !github.event.pull_request.draft && (
|
|
github.event.action == 'opened' ||
|
|
github.event.action == 'reopened' ||
|
|
github.event.action == 'synchronize'
|
|
)
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: 17
|
|
architecture: x64
|
|
- name: Cache Maven packages
|
|
uses: actions/cache@v3.3.1
|
|
with:
|
|
path: ~/.m2
|
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: ${{ runner.os }}-m2-
|
|
- name: Build with Maven
|
|
run: mvn --no-transfer-progress verify
|
|
- name: "Set up QEMU"
|
|
if: runner.os == 'Linux'
|
|
uses: docker/setup-qemu-action@v2.2.0
|
|
- name: "Set up Docker Buildx"
|
|
if: runner.os == 'Linux'
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: "Verify Docker WebGoat build"
|
|
if: runner.os == 'Linux'
|
|
uses: docker/build-push-action@v4.1.1
|
|
with:
|
|
context: ./
|
|
file: ./Dockerfile
|
|
push: false
|
|
build-args: |
|
|
webgoat_version=${{ env.WEBGOAT_MAVEN_VERSION }}
|
|
- name: "Verify Docker WebGoat desktop build"
|
|
uses: docker/build-push-action@v4.1.1
|
|
if: runner.os == 'Linux'
|
|
with:
|
|
context: ./
|
|
file: ./Dockerfile_desktop
|
|
push: false
|
|
build-args: |
|
|
webgoat_version=${{ env.WEBGOAT_MAVEN_VERSION }}
|