Skip to content

Commit

Permalink
Travis -> GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Dec 14, 2020
1 parent e642d6a commit 5eb5c10
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 15 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# this build is designed to replicate the Travis CI workflow
name: Build with Maven

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
build:
strategy:
matrix:
platform: [ ubuntu-latest ]
java-version: [ 8 ]

runs-on: ${{ matrix.platform }}
env:
PLATFORM: ${{ matrix.platform }}
JAVA_VERSION: ${{ matrix.java-version }}

steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install dependencies
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode --show-version --file pom.xml
- name: Build with Maven
run: mvn test --batch-mode --file pom.xml
- name: Update coverage
run: mvn jacoco:report coveralls:report

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ nb-configuration.xml
.*
!.gitignore
!.gitattributes
!.travis.yml
!.github
*~
#############

Expand Down
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

0 comments on commit 5eb5c10

Please sign in to comment.