From 3b7835a18b7ce999fe79ad12cd85014642f30968 Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Fri, 24 Sep 2021 17:34:16 +0200 Subject: [PATCH] Switch to GitHub Actions (#1974) --- .github/workflows/build.yml | 18 ++++++++++++++++++ .travis.yml | 20 -------------------- README.md | 2 +- 3 files changed, 19 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml 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