Skip to content

Commit 4e6d6a4

Browse files
committed
ci: run game tests in pull request validation
1 parent cd335fd commit 4e6d6a4

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/verify-pull-request.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,35 @@ jobs:
106106
with:
107107
name: project-red-${{ steps.versioning.outputs.version }}
108108
path: '*/build/libs/ProjectRed-*.jar'
109+
110+
integration_tests:
111+
name: Integration Test - ${{ matrix.module }}
112+
runs-on: ubuntu-latest
113+
needs: build_test
114+
strategy:
115+
matrix:
116+
module: [transmission]
117+
steps:
118+
- name: Checkout git repo
119+
uses: actions/checkout@v3
120+
with:
121+
fetch-depth: 0
122+
123+
- name: Set up JDK 21
124+
uses: actions/setup-java@v3
125+
with:
126+
distribution: 'adopt'
127+
java-version: '21'
128+
129+
- name: Restore Gradle cache
130+
uses: actions/cache@v3
131+
with:
132+
path: |
133+
~/.gradle/caches
134+
~/.gradle/wrapper
135+
key: ${{ runner.os }}-gradle2-${{ hashFiles('**/build.gradle', '**/build.properties', '**/gradle.properties', '**/gradle-wrapper.properties') }}
136+
restore-keys: |
137+
${{ runner.os }}-gradle2-
138+
139+
- name: Run game tests
140+
run: ./gradlew :${{ matrix.module }}:runGameTestServer

0 commit comments

Comments
 (0)