Add a maven github action
This commit is contained in:
parent
3d81d18439
commit
4b2b5829dd
19
.github/workflows/maven.yml
vendored
Normal file
19
.github/workflows/maven.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: Java CI
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build_and_test:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
- name: Build with Maven
|
||||
run: mvn clean package --file pom.xml
|
||||
- name: Tests with Maven
|
||||
run: mvn test --file pom.xml
|
||||
Loading…
x
Reference in New Issue
Block a user