-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.21 KB
/
e2e_tests.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
name: Unity Build and Test
on:
# Build every commit to 'main'
push:
branches:
- main
# Build every PR
pull_request:
concurrency:
group: unity_build
cancel-in-progress: false
jobs:
test:
name: Unity E2E Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
lfs: true
# - name: Retrieve Cached Library
# uses: actions/cache@v3
# with:
# path: Library
# key: Library-${{ hashFiles('src/RGUnityBots/Assets/**', 'src/RGUnityBots/Packages/**', 'src/RGUnityBots/ProjectSettings/**') }}
# restore-keys: |
# Library-
- name: Run Unity Tests
id: run-unity-tests
uses: game-ci/unity-test-runner@v4
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Test Results
uses: actions/upload-artifact@v3
if: always()
with:
name: Test results
path: ${{ steps.run-unity-tests.outputs.artifactsPath }}