-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI build with GitHub Actions instead of Travis
- Loading branch information
Showing
3 changed files
with
66 additions
and
23 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,65 @@ | ||
# Github action performing the following operations: | ||
# - Define an environment variable STOREPASS=password | ||
# - Build the Maven project with Java 8, Java 11 and Java 17 as a matrix. The JDK is provided by Temurin | ||
# - As a post build step, run the tests and upload test coverage to Coveralls. | ||
|
||
name: build | ||
|
||
on: | ||
push: | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
env: | ||
STOREPASS: password | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: [ 8, 11, 17 ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Java ${{ matrix.java }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: Compile | ||
run: | | ||
mvn -version | ||
mvn -B clean compile | ||
- name: Tests | ||
run: mvn -B test | ||
|
||
- name: Packaging | ||
run: mvn -B package -DskipTests | ||
|
||
- name: Coverage report | ||
run: mvn -B clean test jacoco:report-aggregate coveralls:report -DjacocoReports=jsign/target/site/jacoco-aggregate/jacoco.xml -DrepoToken=${{ secrets.COVERALLS_TOKEN }} || true | ||
|
||
experimental: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Java 20 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 20 | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: Build | ||
run: | | ||
mvn -version | ||
mvn -B clean package || true |
This file was deleted.
Oops, something went wrong.
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