Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Ski committed Oct 1, 2024
1 parent f9b313a commit 7287d58
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-pullrequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build pull request

on:
pull_request:
branches: [ master ]
permissions:
contents: read

jobs:
build-java:
if: "!contains(github.event.head_commit.message, 'ci skip')"
runs-on: ubuntu-20.04
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
submodules: 'recursive'

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build & test Java code
run: |
./gradlew build
./gradlew test
4 changes: 0 additions & 4 deletions gdx-ai/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ sourceSets {
java {
srcDirs = [ "src/" ]
}

resources {
srcDirs = [ "src/**.*xml" ]
}
}

test {
Expand Down

0 comments on commit 7287d58

Please sign in to comment.