Merge pull request #9 from Alexandrress/develop #32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test ⚙ | |
| on: | |
| push: | |
| branches: | |
| - '**' #Matches every branch | |
| env: | |
| UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
| UNITY_VERSION: "2020.1.10f1" | |
| jobs: | |
| build: | |
| name: Test Unity project | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| with: | |
| lfs: true | |
| # Cache | |
| - uses: actions/cache@v2 | |
| with: | |
| path: Library #Path where Unity stocks build cache | |
| key: Library | |
| # Test | |
| - name: Run tests | |
| uses: game-ci/unity-test-runner@v2 | |
| with: | |
| unityVersion: ${{ env.UNITY_VERSION }} | |
| customParameters: '-nographics' |