Skip to content

Merge pull request #2614 from karatelabs/dependabot/maven/karate-demo… #1689

Merge pull request #2614 from karatelabs/dependabot/maven/karate-demo…

Merge pull request #2614 from karatelabs/dependabot/maven/karate-demo… #1689

Workflow file for this run

name: maven-build
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
build:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v4
- name: set up jdk 17
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17
- name: cache maven packages
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: build with maven
run: mvn -B clean install -P pre-release -Djavacpp.platform=linux-x86_64
- name: build and test with docker
run: ./build-docker.sh
- name: upload workspace if build fails
# if: ${{ failure() }}
if: ${{ false }}
uses: actions/upload-artifact@v4
with:
name: build-results
path: .
retention-days: 5