diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..688ecff1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '11' + cache: 'maven' + - name: Build with Maven + run: mvn --batch-mode --update-snapshots verify diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0c36a2d8..00000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: java - -jdk: - - openjdk11 - -install: mvn -f gson install -DskipTests=true -script: mvn -f gson test - -branches: - except: - - gh-pages - -notifications: - email: false - -sudo: false - -cache: - directories: - - $HOME/.m2 diff --git a/README.md b/README.md index 7a003fbe..17acc950 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Maven: [Gson jar downloads](https://maven-badges.herokuapp.com/maven-central/com.google.code.gson/gson) are available from Maven Central. -[![Build Status](https://travis-ci.org/google/gson.svg?branch=master)](https://travis-ci.org/google/gson) +![Build Status](https://github.com/google/gson/actions/workflows/build.yml/badge.svg) ### Documentation * [API Javadoc](https://www.javadoc.io/doc/com.google.code.gson/gson): Documentation for the current release