forked from prometheus/client_java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Convert from CircleCI to Github Actions
* Also add builds for Java 11 and Java 17 Fixes prometheus#743 Relates prometheus#658 Signed-off-by: Harold Dost <[email protected]>
- Loading branch information
Showing
2 changed files
with
42 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "PR Build" | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java-version: | ||
- 8 | ||
- 11 | ||
- 17 | ||
include: | ||
- os: ubuntu-20.04 | ||
test-java-version: 11 | ||
coverage: true | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '${{ matrix.java-version }}' | ||
distribution: 'adopt' | ||
- name: Caching | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2 | ||
key: maven-dependencies-${{ hashFiles('pom.xml') }}-${{ matrix.java-version }} | ||
- name: Build ${{ matrix.java-version }} | ||
run: | | ||
java -version | ||
./mvnw clean install | ||
- name: Build Java Doc ${{ matrix.java-version }} | ||
run: ./mvnw javadoc:jar |