chore(unity): upgrade assets to unity 6 #109
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 unity plugin | |
| on: | |
| workflow_dispatch: | |
| pull_request_target: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| cover: | |
| name: test and cover | |
| runs-on: ubuntu-latest | |
| environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external-pr' || '' }} | |
| strategy: | |
| matrix: | |
| projectPath: | |
| - plugins/unity | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }} | |
| fetch-depth: 0 | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ${{ matrix.projectPath }}/Library | |
| key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | |
| restore-keys: | | |
| Library- | |
| - name: Run tests and generate coverage report | |
| uses: game-ci/unity-test-runner@v4 | |
| id: tests | |
| env: | |
| UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| with: | |
| projectPath: ${{ matrix.projectPath }} | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| testMode: editmode | |
| coverageOptions: useProjectSettings;generateAdditionalMetrics | |
| customParameters: -debugCodeOptimization -enableCodeCoverage | |
| - name: Upload coverage report | |
| uses: codecov/codecov-action@v4 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| files: ${{ steps.tests.outputs.coveragePath }}/**/*.xml | |
| fail_ci_if_error: true |