-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (52 loc) · 1.9 KB
/
Copy pathrun-tests.yml
File metadata and controls
64 lines (52 loc) · 1.9 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
61
62
63
64
on:
workflow_call:
inputs:
platform:
required: true
type: string
architecture:
required: true
type: string
jobs:
run_tests:
runs-on: ${{
(inputs.platform == 'osx' && 'macos-14') ||
(inputs.platform == 'linux' && 'ubuntu-latest') ||
(inputs.platform == 'win' && 'windows-latest')
}}
steps:
- name: Download Test Binaries
uses: actions/download-artifact@v8
with:
name: tests.${{ inputs.platform }}-${{ inputs.architecture }}
path: ./
- name: Setup Dependencies (Linux)
if: inputs.platform == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y libwayland-dev wayland-protocols libudev-dev libdecor-0-dev
- name: Extract Tests Archive (Windows)
if: inputs.platform == 'win'
run: 7z x ./tests.${{ inputs.platform }}-${{ inputs.architecture }}.zip -o"."
- name: Extract Tests Archive
if: inputs.platform != 'win'
run: tar -xf ./tests.${{ inputs.platform }}-${{ inputs.architecture }}.tar ./tests/
- name: Run Foundations Tests
if: inputs.platform != 'osx'
run: ./tests/FoundationsTests/FoundationsTests
- name: Run Foundations Tests (MacOS)
if: inputs.platform == 'osx'
run: ./tests/FoundationsTests.app/Contents/MacOS/FoundationsTests
- name: Run Application Tests
if: inputs.platform != 'osx'
run: ./tests/ApplicationTests/ApplicationTests
- name: Run Application Tests (MacOS)
if: inputs.platform == 'osx'
run: ./tests/ApplicationTests.app/Contents/MacOS/ApplicationTests
- name: Run Tools Tests
if: inputs.platform != 'osx'
run: ./tests/ToolsTests/ToolsTests
- name: Run Tools Tests (MacOS)
if: inputs.platform == 'osx'
run: ./tests/ToolsTests.app/Contents/MacOS/ToolsTests
# GraphicsTests require a GPU-backed runner and are run manually for now.