mirror of
https://github.com/LazyDuchess/OpenTS2.git
synced 2025-01-23 08:41:47 -05:00
32 lines
928 B
YAML
32 lines
928 B
YAML
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
|