Run actions on all push and pull-requests

This commit is contained in:
Gabriel Le Breton 2020-10-09 09:48:14 -04:00
parent 7519a9cbdf
commit 338d649e66

View File

@ -1,8 +1,6 @@
name: Actions 😎 name: Actions 😎
on: on: [push, pull_request]
pull_request: {}
push: { branches: [main] }
env: env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
@ -64,13 +62,13 @@ jobs:
# with: # with:
# name: Test results (all modes) # name: Test results (all modes)
# path: ${{ steps.testRunner.outputs.artifactsPath }} # path: ${{ steps.testRunner.outputs.artifactsPath }}
- uses: webbertakken/unity-builder@master - uses: webbertakken/unity-builder@${{ matrix.unityBuilderVersion }}
with: with:
projectPath: ${{ matrix.projectPath }} projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }} unityVersion: ${{ matrix.unityVersion }}
targetPlatform: ${{ matrix.targetPlatform }} targetPlatform: ${{ matrix.targetPlatform }}
customParameters: '-nographics' customParameters: '-nographics'
- uses: actions/upload-artifact@${{ matrix.unityBuilderVersion }} - uses: actions/upload-artifact@v1
with: with:
name: Build name: Build
path: build path: build