From 21d55b457b745df86cd7a0f7af2c17f62c1ccea5 Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Mon, 17 Jun 2024 21:57:04 +0200 Subject: [PATCH] Switch from Travis CI to GitHub Actions --- .github/workflows/ci.yml | 19 +++++++++++++++++++ .travis.yml | 16 ---------------- README.md | 2 +- 3 files changed, 20 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..36c98c4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: Build and Test +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-22.04 + strategy: + matrix: + java: [ '8', '11', '17' ] + name: Java ${{ matrix.Java }} Build and Test + 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 acf1b75..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 4b1279b..da359b5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # EXPath Tools for Saxon -[![Build Status](https://travis-ci.com/expath/expath-tools-saxon.svg?branch=master)](https://travis-ci.com/expath/expath-tools-saxon) +[![Build Status](https://github.com/expath/expath-tools-saxon/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/expath/expath-tools-saxon/actions/workflows/ci.yml) [![Maven Central](https://img.shields.io/maven-central/v/org.expath.tools/tools-saxon.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.expath.tools%22%20AND%20a:%22tools-saxon%22) [![License](https://img.shields.io/badge/license-MPL%201.0-blue.svg)](https://opensource.org/licenses/MPL-1.0)