Skip to content

Commit 7800e7e

Browse files
authored
Add PR Github Action
This Action builds and test the project without actually publishing anything when a PR is opened against master. A different action, that is triggered upon a commit to master, will actually deal with generating javadoc, documentation changes + publishing to MavenCentral.
1 parent 472f39a commit 7800e7e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/maven.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This workflow is designed to build PRs for AHC. Note that it does not actually publish AHC, just builds and test it.
2+
# Docs: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven - PR Action
5+
6+
on:
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-16.04
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK 1.8
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 1.8
19+
- name: Build and test with Maven
20+
run: mvn test -Ptest-output

0 commit comments

Comments
 (0)