Skip to content

Commit 7328516

Browse files
committed
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]>
1 parent ec6def4 commit 7328516

File tree

2 files changed

+37
-20
lines changed

2 files changed

+37
-20
lines changed

.circleci/config.yml

-20
This file was deleted.

.github/workflows/pr-build.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "PR Build"
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
- main
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-20.04
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
java-version:
16+
- 8
17+
- 11
18+
- 17
19+
include:
20+
- os: ubuntu-20.04
21+
test-java-version: 11
22+
coverage: true
23+
steps:
24+
- uses: actions/[email protected]
25+
with:
26+
fetch-depth: 0
27+
- name: Restore the cache
28+
uses: actions/cache@v2
29+
with:
30+
path: ~/.m2
31+
key: maven-dependencies-${{ hashFiles('pom.xml') }}-${{ matrix.java-version }}
32+
- name: Build ${{ matrix.java-version }}
33+
run: |
34+
java -version
35+
./mvnw clean install
36+
- name: Build Java Doc ${{ matrix.java-version }}
37+
run: ./mvnw javadoc:jar

0 commit comments

Comments
 (0)