From ea6d4d238e59f297c07f81b775b7dd07b68f09e4 Mon Sep 17 00:00:00 2001 From: damios Date: Sun, 15 Oct 2023 13:54:34 +0200 Subject: [PATCH] ci: Add Github Action to build & test PRs (#14) --- .github/workflows/build-and-test.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 19 ------------------- gradlew | 0 3 files changed, 27 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/build-and-test.yml delete mode 100644 .travis.yml mode change 100644 => 100755 gradlew diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..c67a61c --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,27 @@ +name: Build & Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + - name: Build with Gradle + uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2.9.0 + with: + arguments: build diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b1d1fd2..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: java -jdk: oraclejdk8 - -dist: trusty - -before_cache: - - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ - -cache: - directories: - - $HOME/.gradle/caches/ - - $HOME/.gradle/wrapper/ - -before_install: - - chmod +x gradlew - -notifications: - email: false diff --git a/gradlew b/gradlew old mode 100644 new mode 100755