diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f8657ff --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: "Maven" + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + name: "Build" + runs-on: "ubuntu-latest" + + steps: + - uses: "actions/checkout@v4" + + - name: "Set up JDK 8" + uses: "actions/setup-java@v4" + with: + java-version: "8" + distribution: "temurin" + cache: "maven" + + - name: "Build with Maven" + env: + MAVEN_OPTS: > + -DtrimStackTrace=false + -Djansi.force=true + MAVEN_ARGS: > + --show-version + --batch-mode + --fail-fast + --update-snapshots + --no-transfer-progress + run: "./mvnw clean verify" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index aaf7d78..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -sudo: false -language: java -after_success: - - mvn clean test jacoco:report coveralls:report -jdk: - - openjdk8 - - openjdk9 - - openjdk10 - - openjdk11 -matrix: - # OpenJDK 11 might fail for now. We need to update several maven plugins to make - # it run successfully. - allow_failures: - - jdk: openjdk11 diff --git a/README.md b/README.md index 4d22cc6..34c019f 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ GELF Client =========== [![Maven Central](https://img.shields.io/maven-central/v/org.graylog2/gelfclient.svg)](https://mvnrepository.com/artifact/org.graylog2/gelfclient) -[![Build Status](https://travis-ci.org/Graylog2/gelfclient.svg)](https://travis-ci.org/Graylog2/gelfclient) -[![Coverage Status](https://img.shields.io/coveralls/Graylog2/gelfclient.svg)](https://coveralls.io/r/Graylog2/gelfclient) +[![Build](https://github.com/Graylog2/gelfclient/actions/workflows/build.yml/badge.svg)](https://github.com/Graylog2/gelfclient/actions/workflows/build.yml) A Java GELF client library with support for different transports.