Merge pull request #24 from Red-Cat-Fat/codex/fix-dailyquestsystem-te… #69
Workflow file for this run
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: Tests | |
| on: push | |
| env: | |
| UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| jobs: | |
| testRunner: | |
| name: Run EditMode tests for all packages | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| testMode: | |
| - EditMode | |
| targetPlatform: | |
| - WebGL | |
| permissions: | |
| checks: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Create LFS file list | |
| run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id | |
| - name: Restore LFS cache | |
| uses: actions/cache@v4 | |
| id: lfs-cache | |
| with: | |
| path: .git/lfs | |
| key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} | |
| - name: Git LFS Pull | |
| run: | | |
| git lfs pull | |
| git add . | |
| git reset --hard | |
| - name: Restore Library cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: RedCatEngineUnityProject/Library | |
| key: Library-test-project-${{ matrix.targetPlatform }} | |
| restore-keys: | | |
| Library-test-project- | |
| Library- | |
| - name: Run tests | |
| uses: game-ci/[email protected] | |
| id: testRunner | |
| with: | |
| unityVersion: 2021.3.31f1 | |
| projectPath: RedCatEngineUnityProject | |
| testMode: ${{ matrix.testMode }} | |
| checkName: All packages test results | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Test results | |
| path: ${{ steps.testRunner.outputs.artifactsPath }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Coverage results | |
| path: ${{ steps.testRunner.outputs.coveragePath }} |