-
Notifications
You must be signed in to change notification settings - Fork 14
90 lines (79 loc) · 2.85 KB
/
main-godot4.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: CI Godot 4
# Controls when the workflow will run
on:
push:
branches:
- develop
- main
- godot4
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- develop
- main
- godot4
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
ADDON_NAME: godot-playfab
GODOT_PLAYFAB_TEST_USER: ${{ secrets.GODOT_PLAYFAB_TEST_USER }}
GODOT_PLAYFAB_TEST_PASSWORD: ${{ secrets.GODOT_PLAYFAB_TEST_PASSWORD }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-test:
name: "🤖 unit tests on Godot v${{ matrix.godot-version }}-${{ matrix.godot-status-version }} (${{ matrix.name }})"
runs-on: ${{ matrix.os }}
timeout-minutes: 5
continue-on-error: false
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
godot-version: ['4.1.3', '4.2.1']
godot-status-version: ['stable']
include:
- os: ubuntu-22.04
name: Godot 🐧 Linux Build
godot-bin-name: 'linux.x86_64'
godot-executable_path: '~/godot-linux/godot'
godot-cache-path: '~/godot-linux'
godot-mono: false
install-opengl: false
test-path: 'res://addons/godot-playfab/test/'
steps:
- name: "📦 Checkout"
uses: actions/checkout@v3
- name: "🤖 Install Godot ${{ matrix.godot-version }}"
uses: ./.github/actions/godot-install
with:
godot-version: ${{ matrix.godot-version }}
godot-status-version: ${{ matrix.godot-status-version }}
godot-bin-name: ${{ matrix.godot-bin-name }}
godot-cache-path: ${{ matrix.godot-cache-path }}
- name: "♻️ Update Godot project cache"
if: ${{ !cancelled() }}
timeout-minutes: 1
continue-on-error: true # we still ignore the timeout, the script is not quit and we run into a timeout
shell: bash
run: |
${{ matrix.godot-executable_path }} --version
${{ matrix.godot-executable_path }} -e --path . -s res://addons/gdUnit4/bin/ProjectScanner.gd --headless
- name: "🧪 Run Unit Tests"
if: ${{ !cancelled() }}
timeout-minutes: 10
uses: ./.github/actions/unit-test
with:
godot-bin: ${{ matrix.godot-executable_path }}
test-includes: ${{ matrix.test-path }}
#- name: "📚 Publish Unit Test Reports"
# if: ${{ !cancelled() }}
# uses: ./.github/actions/publish-test-report
# with:
# report-name: ${{ matrix.godot-build }}${{ matrix.godot-version }}
#- name: "🎉 Upload Unit Test Reports"
# if: ${{ !cancelled() }}
# uses: ./.github/actions/upload-test-report
# with:
# report-name: ${{ matrix.godot-build }}${{ matrix.godot-version }}