Skip to content

Commit

Permalink
CI build/test java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Nov 21, 2023
1 parent 15bd3af commit d5a1ad8
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/maven-master-pulls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,29 @@ jobs:
- name: Build with Maven
run: mvn -B -U verify --file pom.xml

build-java8:

runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8 ]

steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B -U clean verify -DskipTests -Dmaven.test.skip=true -Dmaven.site.skip=true -Dmaven.javadoc.skip=true -Psamples-java8 --file pom.xml

scan-with-lacework:
name: Trigger LaceWork Scanning
runs-on: ubuntu-latest
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/maven-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,26 @@ jobs:
docker push $DOCKER_CODEGEN_CLI_IMAGE_NAME:unstable
else
echo "not deploying release nor building and pushing release docker image: " ${MY_POM_VERSION}
fi
fi
build-java8:

runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8 ]

steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B -U clean verify -DskipTests -Dmaven.test.skip=true -Dmaven.site.skip=true -Dmaven.javadoc.skip=true -Psamples-java8 --file pom.xml

0 comments on commit d5a1ad8

Please sign in to comment.