From 5db5893efae4057d66f92e0521214d470425535f Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Mon, 17 Jun 2024 22:07:33 +0200 Subject: [PATCH] Switch from Travis CI to GitHub Actions --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ .travis.yml | 16 ---------------- README.md | 3 +-- appveyor.yml | 14 -------------- 4 files changed, 22 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c915872 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: Build and Test +on: [push, pull_request] +jobs: + build: + strategy: + fail-fast: false + matrix: + java: [ '8', '11', '17' ] + os: ['ubuntu-latest', 'windows-latest', 'macOS-latest'] + runs-on: ${{ matrix.os }} + name: Java ${{ matrix.Java }} Build and Test (${{ matrix.os }}) + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Setup java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: ${{ matrix.java }} + - name: Maven verify + run: mvn -V -B verify diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 08cfb04..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: java - -matrix: - include: - - jdk: openjdk8 - - jdk: openjdk9 - - jdk: openjdk11 - - jdk: openjdk15 - - - os: osx - osx_image: xcode10.2 - env: JAVA_HOME=$(/usr/libexec/java_home) - -cache: - directories: - - $HOME/.m2 diff --git a/README.md b/README.md index d808b90..cf2cd6a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -[![Build Status](https://travis-ci.com/expath/expath-pkg-java.png?branch=master)](https://travis-ci.com/expath/expath-pkg-java) -[![Build status](https://ci.appveyor.com/api/projects/status/jb816i3e4fh8wob3/branch/master?svg=true)](https://ci.appveyor.com/project/AdamRetter/expath-pkg-java/branch/master) +[![Build Status](https://github.com/expath/expath-pkg-java/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/expath/expath-pkg-java/actions/workflows/ci.yml) [![Maven Central](https://img.shields.io/maven-central/v/org.expath.packaging/pkg.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.expath.packaging%22%20AND%20a:%22pkg%22) [![License](https://img.shields.io/badge/license-MPL%201.0-blue.svg)](https://opensource.org/licenses/MPL-1.0) diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 7de5188..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: '{branch}-{build}' - -environment: - matrix: - - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 - JAVA_HOME: C:\Program Files\Java\jdk1.8.0 - -build_script: - - cmd: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -test_script: - - cmd: mvn test verify -B - -cache: - - '%USERPROFILE%\.m2'