-
Notifications
You must be signed in to change notification settings - Fork 60
60 lines (52 loc) · 1.6 KB
/
Copy pathtest_linux.yml
File metadata and controls
60 lines (52 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: 🐧 Linux Tests
on:
workflow_call:
inputs:
godot-version:
type: string
jvm-version:
type: string
build-version:
type: string
concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux_tests
cancel-in-progress: true
jobs:
test-linux:
runs-on: ubuntu-22.04 # run tests on oldest ubuntu we still support. See build_linux.yml
name: ${{ matrix.name }}
strategy:
matrix:
include:
- name: dev tests
target: dev
build-task: build
- name: release tests
target: release
build-task: buildRelease
steps:
- name: Clone Godot JVM module.
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ inputs.jvm-version }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- name: Download linux editor ${{ matrix.target }}
uses: actions/download-artifact@v4
with:
name: editor_${{ matrix.target }}_linux_x86_64
path: './harness/tests/bin'
- name: Build tests project
run: |
harness/tests/gradlew -p harness/tests/ ${{ matrix.build-task }}
- name: Run Tests
run: |
cd harness/tests/
chmod +x bin/godot.*
jlink --add-modules java.base,java.logging --output jvm/jre-amd64-linux
./gradlew runGDTests
timeout-minutes: 30