Replace Travis with github actions. (#827)

This commit is contained in:
modmuss50 2020-06-21 21:14:29 +01:00 committed by GitHub
parent 0a6f2a70dc
commit b933439292
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 12 deletions

25
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
java-version: [1.8, 11, 14]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- uses: eskatos/gradle-command-action@v1
with:
gradle-version: wrapper
arguments: check build publishToMavenLocal --stacktrace
- uses: actions/upload-artifact@v2
with:
name: Artifacts
path: build/libs/
- uses: actions/upload-artifact@v2
with:
name: Artifacts
path: ./*/build/libs/

View file

@ -1,12 +0,0 @@
language: java
install: true
jdk:
- openjdk8
- openjdk11
script:
- ./gradlew check build publishToMavenLocal --stacktrace
notifications:
email: false