forked from game-ci/unity-test-runner
-
Notifications
You must be signed in to change notification settings - Fork 12
54 lines (45 loc) · 1.28 KB
/
main.yml
File metadata and controls
54 lines (45 loc) · 1.28 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
name: CI
on:
pull_request: {}
push: { branches: [master] }
jobs:
requestActivationFile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Request manual activation file
uses: ./
id: getManualLicenseFile
with:
entrypoint: /request_activation.sh
- name: Expose as artifact
uses: actions/upload-artifact@v1
with:
name: Manual Activation File
path: ${{ steps.getManualLicenseFile.outputs.filePath }}
testRunnerInEditMode:
name: Test edit mode 📝
runs-on: ubuntu-latest
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
steps:
# Checkout repository (required to test local actions)
- name: Checkout repository
uses: actions/checkout@v2
- name: Activate license
uses: ./
with:
entrypoint: /activate.sh
# Configure test runner
- name: Run tests
uses: ./
with:
args: -runTests -projectPath .
workdir: unity-project-with-correct-tests
# no need to return license for personal licenses
#- name: Return license
# if: always()
# uses: ./
# with:
# args: -returnlicense -quit