mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-01-29 04:39:07 +08:00
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Workflow Actions
|
|
on: [push]
|
|
|
|
jobs:
|
|
testWorkflowActions:
|
|
runs-on: ubuntu-latest
|
|
name: Test the workflow actions
|
|
|
|
# Set Unity version
|
|
strategy:
|
|
matrix:
|
|
unity-tag: [2019.2.11f1] # TODO - Reference this tag in all steps
|
|
|
|
steps:
|
|
|
|
# Checkout repository (required to test local actions)
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v1
|
|
|
|
# Configure generic activation (local to the actions container)
|
|
- name: Request activation
|
|
uses: ./request-activation
|
|
env:
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
|
|
# Configure test runner
|
|
- name: Run tests
|
|
uses: ./test-runner
|
|
env:
|
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
|
UNITY_PROJECT: sample-project
|
|
TEST_PLATFORM: playmode # [ playmode | editmode ]
|
|
|
|
# Upload artifact
|
|
- name: Expose as artifact
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: 2019.2 test results
|
|
path: sample-project/playmode-results.xml
|
|
|
|
# Upload artifact
|
|
- name: Expose as artifact
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: 2019.3 test results
|
|
path: sample-project/test-results.xml
|