Update Buildscripts #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Runs tests | |
name: Java Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- '*' | |
concurrency: | |
group: test-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Apply patch to settings.gradle | |
run: | | |
if [ -f settings.gradle.patch ]; then | |
patch -p0 < settings.gradle.patch | |
fi | |
- name: Apply patch to build.gradle | |
run: sed -i 's/debug_all = false/debug_all = true/g' gradle.properties | |
- name: Setup Build | |
uses: ./.github/actions/build_setup | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Run Tests with Gradle | |
run: ./gradlew --info --scan test |