From 358979796fb7b04b01f99746dc06eefff11b6541 Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Tue, 18 Jun 2024 10:14:22 +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..2501e0a --- /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-22.04, 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: liberica + 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 57b4935..34e910a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -[![Build Status](https://travis-ci.com/expath/expath-http-client-java.svg?branch=master)](https://travis-ci.com/expath/expath-http-client-java) -[![Build status](https://ci.appveyor.com/api/projects/status/o090g9b807036qh6/branch/master?svg=true)](https://ci.appveyor.com/project/AdamRetter/expath-http-client-java/branch/master) +[![Build Status](https://github.com/expath/expath-http-client-java/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/expath/expath-http-client-java/actions/workflows/ci.yml) [![Java 8+](https://img.shields.io/badge/java-7%2B-blue.svg)](https://adoptopenjdk.net/) [![License](https://img.shields.io/badge/license-MPL%201.0-blue.svg)](https://www-archive.mozilla.org/mpl/MPL-1.0.txt) [![Maven Central](https://img.shields.io/maven-central/v/org.expath.http.client/http-client.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.expath.http.client%22%20AND%20a:%22http-client%22) 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'