-
Notifications
You must be signed in to change notification settings - Fork 64
58 lines (58 loc) · 1.77 KB
/
Copy pathci.yml
File metadata and controls
58 lines (58 loc) · 1.77 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
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
test:
name: CI (${{ matrix.unityVersion }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
unityVersion: [6000.1.2f1]
# TODO: Add more platforms and versions
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Move Into Subdirectory
shell: bash
run: |
mkdir root
shopt -s dotglob extglob
mv !(root) root/
- name: Remove Plugins
shell: bash
run: find . -type d -name 'ffi-*' ! -name 'ffi-linux-x86_64' -exec rm -rf {} +
- name: Install LiveKit Server
run: curl -sSL https://get.livekit.io | bash
- name: Run LiveKit Server
run: livekit-server --dev &
- name: Run Tests
uses: game-ci/unity-test-runner@v4
id: testRunner
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
projectPath: root
unityVersion: ${{ matrix.unityVersion }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: Test Results (${{ matrix.unityVersion }})
packageMode: true
useHostNetwork: true
- name: Upload Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: Test results (all modes, ${{ matrix.unityVersion }})
path: ${{ steps.testRunner.outputs.artifactsPath }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: Coverage results (${{ matrix.unityVersion }})
path: ${{ steps.testRunner.outputs.coveragePath }}