ci: add CI workflow for testing all modules (#4)
This commit is contained in:
1 parent
8669a3e349
commit
8b12d22c1d
1 file changed
+45
@@ -0,0 +1,45 @@
|
|||||||
|
name: Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "master" ]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Test (${{ matrix.module }})
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
module:
|
||||||
|
- patcher
|
||||||
|
- common
|
||||||
|
- bytecodec
|
||||||
|
- network
|
||||||
|
- protocols.login
|
||||||
|
- protocols.game
|
||||||
|
- server.login
|
||||||
|
- server.game
|
||||||
|
- codegen
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Set up JDK 25
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: '25'
|
||||||
|
|
||||||
|
- name: Set up Gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v4
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: ./gradlew :${{ matrix.module }}:test
|
||||||
Reference in new issue
Block a user