From f43986eb57d69f3cfb70880444d3590689dd2c88 Mon Sep 17 00:00:00 2001 From: soc Date: Tue, 13 Apr 2021 20:28:44 +0200 Subject: [PATCH] Replace Travis CI with GitHub Actions for testing main branch and PRs --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ .travis.yml | 10 ---------- README.md | 2 +- 3 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e90732b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Linux build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + - name: Run tests + run: sbt test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3ceafd6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -os: - - linux - #- osx - # macOS is disabled due to this job error: - # "The command "jdk_switcher use default" failed and exited with 127 during ." -language: scala -scala: - - 2.12.5 -script: - sbt test diff --git a/README.md b/README.md index c505c26..60e1c87 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![Maven Central](https://img.shields.io/maven-central/v/dev.dirs/directories.svg)](https://search.maven.org/#search|gav|1|g%3A%22dev.dirs%22%20AND%20a%3A%22directories%22) [![API documentation](http://javadoc.io/badge/dev.dirs/directories.svg)](http://javadoc.io/doc/dev.dirs/directories) ![actively developed](https://img.shields.io/badge/maintenance-actively_developed-brightgreen.svg) -[![TravisCI status](https://img.shields.io/travis/dirs-dev/directories-jvm/main.svg?label=Linux%20build)](https://travis-ci.org/dirs-dev/directories-jvm) +[![GitHub Actions status](https://github.com/dirs-dev/directories-jvm/workflows/Linux%20build/badge.svg)](https://github.com/dirs-dev/directories-jvm/actions/workflows/test.yml) [![AppVeyor status](https://img.shields.io/appveyor/ci/soc/directories-jvm/main.svg?label=Windows%20build)](https://ci.appveyor.com/project/soc/directories-jvm/branch/main) [![License: MPL-2.0](https://img.shields.io/github/license/dirs-dev/directories-jvm.svg)](LICENSE)