From 0c4cd0816a9fb2de523421d5a6a97e46bc0a83d8 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 30 Jul 2021 16:41:57 -0400 Subject: [PATCH] Migrate to GitHub Actions Closes #165 Signed-off-by: David Thompson --- .github/workflows/tests.yml | 24 ++++++++++++++++++++++++ .travis.yml | 10 ---------- README.md | 2 +- 3 files changed, 25 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/tests.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..238c8ab4 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,24 @@ +name: Tests +on: [push, pull_request] +jobs: + tests: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v2 + - name: Cache .m2 repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: maven-repository-${{ hashFiles('**/pom.xml') }} + - name: Set up Adoptium JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + - name: Setup fonts + run: cd vilebot && bash download-fonts.sh && cd .. + - name: Setup configuration + run: cp vilebot/cfg/vilebot.conf.example vilebot/cfg/vilebot.conf + - name: Run tests + run: mvn verify diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ae436209..00000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: java -dist: xenial -jdk: openjdk11 -before_install: - - cd vilebot/ - - bash download-fonts.sh - - cd ../ - - cp vilebot/cfg/vilebot.conf.example vilebot/cfg/vilebot.conf -install: true -script: mvn verify diff --git a/README.md b/README.md index 4e1e5a7b..71e3d542 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Vilebot -[![Build Status](https://travis-ci.org/oldterns/VileBot.svg?branch=master)](https://travis-ci.org/oldterns/VileBot) +[![Build Status](https://github.com/oldterns/VileBot/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/oldterns/VileBot/actions?query=branch%3Amaster) ## Setup