-
Notifications
You must be signed in to change notification settings - Fork 20
32 lines (29 loc) · 928 Bytes
/
ci.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
name: CI
on:
push:
workflow_dispatch:
pull_request_target:
types: [labeled]
jobs:
test:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request_target' || contains(github.event.pull_request.labels.*.name, 'safe to test')
steps:
- name: Checkout repository
if: ${{ github.event_name != 'pull_request_target' }}
uses: actions/checkout@v2
- name: Checkout repository (Pull Request Target)
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v2
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- uses: actions/cache@v2
with:
path: ./Library
key: Library
- uses: game-ci/unity-test-runner@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
checkName: Unity Test Results