-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I did this a few months back for https://github.com/spotify/missinglink and I've just copied the workflow here.
- Loading branch information
Showing
2 changed files
with
39 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Java CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
name: Build/Test | ||
|
||
runs-on: ubuntu-latest | ||
|
||
# Test on each Java LTS version | ||
strategy: | ||
matrix: | ||
java_version: [8, 11] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
- name: Set up JDK ${{ matrix.java_version }} | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java_version }} | ||
- name: Cache Maven packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-java-${{ matrix.java_version }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-java-${{ matrix.java_version }}-m2 | ||
- name: Build with Maven | ||
run: mvn --batch-mode --update-snapshots verify | ||
- name: Codecov | ||
uses: codecov/codecov-action@v1 |
This file was deleted.
Oops, something went wrong.