-
-
Notifications
You must be signed in to change notification settings - Fork 471
49 lines (46 loc) · 1.57 KB
/
run-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
name: Run Tests
on:
push: {}
pull_request_target:
types: [labeled]
concurrency:
group: ${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.ref_name != 'master' }}
jobs:
check-test-trigger:
runs-on: ubuntu-latest
if: github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'ci:run')
steps:
- uses: actions-ecosystem/action-remove-labels@v1
if: contains(github.event.pull_request.labels.*.name, 'ci:run')
with:
labels: ci:run
run-tests-on-linux:
uses: ./.github/workflows/linux-test.yml
needs: check-test-trigger
with:
ref: ${{ github.event.pull_request.head.sha }}
is_master: ${{ github.ref_name == 'master' }}
secrets:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_TOTP_KEY: ${{ secrets.UNITY_TOTP_KEY }}
run-tests-on-macos:
uses: ./.github/workflows/macos-test.yml
needs: check-test-trigger
with:
ref: ${{ github.event.pull_request.head.sha }}
is_master: ${{ github.ref_name == 'master' }}
secrets:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_TOTP_KEY: ${{ secrets.UNITY_TOTP_KEY }}
run-tests-on-windows:
uses: ./.github/workflows/windows-test.yml
needs: check-test-trigger
with:
ref: ${{ github.event.pull_request.head.sha }}
secrets:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_TOTP_KEY: ${{ secrets.UNITY_TOTP_KEY }}