From 05540800028f5c3d9c317cb7027ff732a54fe902 Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Sat, 7 Aug 2021 08:18:54 -0700 Subject: [PATCH] ci: migrate travis ci to github actions --- .github/workflows/CI.yml | 29 +++++++++++++++++++++++++++++ .travis.yml | 12 ------------ README.md | 3 +++ 3 files changed, 32 insertions(+), 12 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 00000000..98596878 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,29 @@ +name: CI +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + test: + name: '${{ matrix.platform }} with Java 8' + strategy: + matrix: + platform: + - ubuntu-latest + - windows-latest + - macos-latest + runs-on: ${{ matrix.platform }} + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + distribution: adopt-hotspot + java-version: 8 + - name: Build and Test + run: mvn -B package diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3e6eecac..00000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: java - -jdk: - - oraclejdk8 - - openjdk8 - -install: true -script: mvn install -DskipTests=true -Dgpg.skip=true -Dmaven.javadoc.skip=true -B -V - -cache: - directories: - - $HOME/.m2 diff --git a/README.md b/README.md index b173af95..d04e5707 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # ESUP File Manager +[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.esupportail.portlet.filemanager/esup-filemanager/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.esupportail.portlet.filemanager/esup-filemanager) +[![build status](https://github.com/uPortal-Project/esup-filemanager/workflows/CI/badge.svg?branch=master)](https://github.com/uPortal-Project/esup-filemanager/actions) + > Esup File Manager allows users to perform file management on their home directories. ## Features