Switch to GitHub Actions (#1974)

This commit is contained in:
Marcono1234 2021-09-24 17:34:16 +02:00 committed by GitHub
parent aa5554e69a
commit 3b7835a18b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 21 deletions

18
.github/workflows/build.yml vendored Normal file
View File

@ -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

View File

@ -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

View File

@ -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