Skip to content

Commit

Permalink
run lrg tests in GH build
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Aug 30, 2021
1 parent 1ab0d5c commit 1843df4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
name: EclipseLink PR build

on:
push:
branches: [ main, master, '3.0' ]
pull_request:
branches: [ main, master ]

branches: [ main, master, '3.0' ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Test on JDK ${{ matrix.java_version }}
Expand All @@ -26,6 +29,17 @@ jobs:
java_version: [ 17-ea ]

steps:
- name: Cancel previous runs of this workflow
uses: styfle/cancel-workflow-action@0.9.1
with:
all_but_latest: true
access_token: ${{ github.token }}
- name: Start MySQL Database
run: |
sudo systemctl start mysql.service
mysql -e 'SET GLOBAL log_bin_trust_function_creators = 1;' -uroot -proot
mysql -e 'CREATE DATABASE ecltests;' -uroot -proot
mysql -e 'SHOW DATABASES;' -uroot -proot
- name: Cache local Maven repository
uses: actions/cache@v2
with:
Expand All @@ -41,4 +55,4 @@ jobs:
distribution: 'zulu'
java-version: ${{ matrix.java_version }}
- name: Verify
run: mvn -B -V -U -C -Pstaging,oss-release clean verify -Dgpg.skip=true -Dwarn.limit=2500 -Dcomp.xlint=-Xlint:all,-rawtypes
run: mvn -B -V -U -C -Pstaging,oss-release,test-lrg,mysql clean verify -Dgpg.skip=true -Dwarn.limit=15 -Dcomp.xlint=-Xlint:none
2 changes: 1 addition & 1 deletion bundles/eclipselink/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@
</execution>
<execution>
<id>stage</id>
<phase>install</phase>
<phase>verify</phase>
<goals>
<goal>unpack</goal>
</goals>
Expand Down

0 comments on commit 1843df4

Please sign in to comment.