-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LI-50459 - Add support to git hubaction
- Loading branch information
1 parent
e8dfe73
commit 71f1970
Showing
5 changed files
with
184 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: Java SDK CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- support/SDK-V3 | ||
- feature/** | ||
- bugfix/** | ||
- dependabot/** | ||
|
||
jobs: | ||
build: | ||
# Compile the project using the predefined JDK versions in the strategy section | ||
runs-on: ubuntu-latest | ||
name: Build - JDK ${{ matrix.java-version }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java-version: [ 8 ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java-version }} | ||
|
||
- name: Build and Test JDK ${{ matrix.java-version }} | ||
# --batch-mode Run in non-interactive (batch) mode (disables output color) | ||
# --update-snapshots Forces a check for missing releases and updated snapshots on remote repositories | ||
run: mvn --batch-mode --update-snapshots compile | ||
|
||
test: | ||
# Perform the unit and integration tests using the predefined JDK versions in the strategy section | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
name: Test - JDK ${{ matrix.java-version }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java-version: [ 8, 9, 10, 11, 12, 13, 14, 15, 16 ,17, 18 ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup JDK ${{ matrix.java-version }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
architecture: x64 | ||
java-version: ${{ matrix.java-version }} | ||
|
||
- name: Run the Maven test phase JDK ${{ matrix.java-version }} | ||
# --batch-mode Run in non-interactive (batch) mode (disables output color) | ||
# --update-snapshots Forces a check for missing releases and updated snapshots on remote repositories | ||
run: mvn --batch-mode --update-snapshots test | ||
|
||
code-coverage: | ||
needs: [ test ] | ||
runs-on: ubuntu-latest | ||
|
||
name: Report code coverage - JDK ${{ matrix.java-version }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java-version: [ 8 ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup JDK ${{ matrix.java-version }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java-version }} | ||
|
||
- name: "Report: Coverage via coveralls.io" | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | ||
run: | | ||
mvn clean \ | ||
cobertura:cobertura \ | ||
coveralls:report \ | ||
--no-transfer-progress \ | ||
-D repoToken=$COVERALLS_REPO_TOKEN |
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
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
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
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