Add empty-queue exception for typed state machine #56
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: Test for ${{ matrix.package }} package | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| testMode: | |
| - EditMode | |
| #- PlayMode | |
| package: | |
| - DependencyInjection | |
| - StateMachine | |
| #- Quests #need resolve package dependency | |
| 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 | |
| packageMode: true | |
| projectPath: RedCatEngineUnityProject/Packages/${{ matrix.package }} | |
| testMode: ${{ matrix.testMode }} | |
| checkName: ${{ matrix.package }} package test results | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Test results (${{ matrix.package }}) | |
| path: ${{ steps.testRunner.outputs.artifactsPath }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Coverage results (${{ matrix.package }}) | |
| path: ${{ steps.testRunner.outputs.coveragePath }} |