Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Set up CI using GitHub Actions. #32

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Java CI

on: [push]

jobs:
build:

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: Cache Maven dependencies
uses: actions/cache@v1
with:
path: ~/.m2
key: build-${{ hashFiles('pom.xml') }}
restore-keys: |
build-

- name: Build with Maven
run: mvn --batch-mode -show-version --errors package