chore: fix failing unity tests on windows player builds #272
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 package | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Run Tests in ${{ matrix.testMode }} ${{ matrix.unityVersion }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| testMode: | |
| - playmode | |
| - editmode | |
| projectPath: | |
| - test-package | |
| unityVersion: | |
| - 2021.3.56f2 | |
| - 2022.3.56f1 | |
| - 6000.3.7f1 | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - name: Setup Environment | |
| run: | | |
| mkdir ${{ matrix.projectPath }} | |
| mv Editor Runtime Tests Android iOS Mac Windows package.json ${{ matrix.projectPath }}/ | |
| - name: Run Tests | |
| uses: game-ci/unity-test-runner@v4 | |
| env: | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | |
| with: | |
| packageMode: true | |
| projectPath: ${{ matrix.projectPath }}/ | |
| testMode: ${{ matrix.testMode }} | |
| unityVersion: ${{ matrix.unityVersion }} | |
| coverageOptions: "generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+my.assembly.*" |