-
Notifications
You must be signed in to change notification settings - Fork 13
71 lines (63 loc) · 1.54 KB
/
quest-system-ci.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
name: quest-system-ci
on:
push:
branches:
- main
paths-ignore:
- '**.jpg'
- '**.png'
- '**.md'
- '**.svg'
- '**plugin.cfg'
pull_request:
paths-ignore:
- '**.jpg'
- '**.png'
- '**.md'
- '**.svg'
- '**plugin.cfg'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
checks: write
pull-requests: write
statuses: write
strategy:
fail-fast: false
max-parallel: 10
matrix:
godot-version: ['4.3', '4.2.2']
godot-status: ['stable']
name: "🧪 CI on Godot ${{ matrix.godot-version }}"
steps:
- name: "📦 Checkout repository"
uses: actions/checkout@v4
- name: "🧪 Run unit tests"
uses: MikeSchulze/[email protected]
with:
godot-version: ${{ matrix.godot-version }}
godot-status: ${{ matrix.godot-status }}
paths: "res://tests"
version: "installed"
publish-report: false
report-name: unit_tests_report_Godot${{ matrix.godot-version }}
timeout: 3
finalize:
if: ${{ !cancelled() }}
runs-on: ubuntu-latest
name: '🧪 Final Results'
needs: [unit-tests]
steps:
- run: exit 1
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}