Skip to content

Commit fec4a3e

Browse files
committed
chore: Convert from CircleCI to Github Actions
* Replaces existing build ** Didn't enable other builds as there are currently failures. Fixes prometheus#743 Relates prometheus#658 Signed-off-by: Harold Dost <[email protected]>
1 parent ec6def4 commit fec4a3e

File tree

2 files changed

+39
-20
lines changed

2 files changed

+39
-20
lines changed

.circleci/config.yml

-20
This file was deleted.

.github/workflows/pr-build.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "PR Build"
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
- main
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+
- 11
16+
# - 17 Until Java 6 is not targeted this won't work
17+
java-distribution:
18+
# - adopt-openj9 For now building was already exists
19+
- temurin # OpenJDK
20+
steps:
21+
- uses: actions/[email protected]
22+
with:
23+
fetch-depth: 0
24+
- name: Set up JDK
25+
uses: actions/setup-java@v2
26+
with:
27+
java-version: '${{ matrix.java-version }}'
28+
distribution: '${{ matrix.java-distribution }}'
29+
- name: Caching
30+
uses: actions/cache@v2
31+
with:
32+
path: ~/.m2
33+
key: maven-${{ hashFiles('**/pom.xml') }}-${{ matrix.java-version }}-${{ matrix.java-distribution }}
34+
- name: Build
35+
run: |
36+
java -version
37+
./mvnw clean install
38+
- name: Build Java Doc
39+
run: ./mvnw javadoc:jar

0 commit comments

Comments
 (0)