Skip to content

Commit 85e3941

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 85e3941

File tree

2 files changed

+36
-20
lines changed

2 files changed

+36
-20
lines changed

.circleci/config.yml

-20
This file was deleted.

.github/workflows/pr-build.yml

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

0 commit comments

Comments
 (0)