From 3a766141175c3462c99803b10d9ef4d4ddce1297 Mon Sep 17 00:00:00 2001 From: aNNiMON Date: Fri, 12 Jan 2024 22:04:31 +0200 Subject: [PATCH] Fix CI --- .github/workflows/gradle.yml | 38 ++++++++++++++++++++++++++++++++++++ README.md | 4 +--- gradlew | 0 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/gradle.yml mode change 100644 => 100755 gradlew diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..20a209f --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,38 @@ +name: build + +on: + push: + branches: [ "latest" ] + pull_request: + branches: [ "latest" ] + +env: + GRADLE_CACHE_KEY: ${{ github.run_id }}-gradle-${{ github.run_number }}-${{ github.run_number }}-${{ github.sha }} + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + name: Build & Test + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Gradle cache + uses: actions/cache@v3 + with: + path: ~/.gradle/caches + key: ${{ env.GRADLE_CACHE_KEY }} + restore-keys: ${{ env.GRADLE_CACHE_KEY }} + + - name: Run tests + uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 + with: + arguments: test diff --git a/README.md b/README.md index 5c1b938..4d34d77 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ # OwnLang -[![Build Status](https://travis-ci.org/aNNiMON/Own-Programming-Language-Tutorial.svg?branch=latest)](https://travis-ci.org/aNNiMON/Own-Programming-Language-Tutorial) - OwnLang - dynamic functional programming language inspired by Scala and Python. Available for PC, Android and Java ME devices. ## Installing @@ -157,4 +155,4 @@ or ## License -MIT - see [MIT licence information](LICENSE) +MIT - see [MIT license information](LICENSE) diff --git a/gradlew b/gradlew old mode 100644 new mode 100755