Skip to content

Commit

Permalink
migrate CI to Github Actions (#84)
Browse files Browse the repository at this point in the history
I did this a few months back for https://github.com/spotify/missinglink
and I've just copied the workflow here.
  • Loading branch information
mattnworb authored Jul 22, 2021
1 parent 316f6d5 commit ada4ab2
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 15 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yaml
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
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit ada4ab2

Please sign in to comment.