Files
unity-actions/.github/workflows/main.yml
2019-11-28 01:08:33 +01:00

40 lines
1.0 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: test results
path: sample-project/playmode-results.xml