chore(deps): bump pytest from 8.2.2 to 9.0.3 in /examples/passport/Tests #1091
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: Test & Build | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'src/Packages/Passport/**' | |
| - 'examples/passport/**' | |
| - 'examples/passport-unity6/**' | |
| - 'Plugins/**' | |
| pull_request: | |
| paths: | |
| - 'src/Packages/Passport/**' | |
| - 'examples/passport/**' | |
| - 'examples/passport-unity6/**' | |
| - 'Plugins/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| if: github.event.pull_request.head.repo.fork == false | |
| name: Test sample app 🛠️ | |
| runs-on: ubuntu-latest-8-cores | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| lfs: true | |
| - run: git lfs pull | |
| - uses: game-ci/unity-test-runner@v4 | |
| id: passportTest | |
| env: | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | |
| with: | |
| unityVersion: 2021.3.26f1 | |
| projectPath: './examples/passport' | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| testMode: 'EditMode' | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: Test results | |
| path: ${{ steps.passportTest.outputs.artifactsPath }} | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: Coverage results | |
| path: ${{ steps.passportTest.outputs.coveragePath }} | |
| test-unity6: | |
| if: github.event.pull_request.head.repo.fork == false | |
| name: Test Unity 6 sample app 🛠️ | |
| runs-on: ubuntu-latest-8-cores | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| lfs: true | |
| - run: git lfs pull | |
| - uses: game-ci/unity-test-runner@v4 | |
| id: unity6Test | |
| env: | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | |
| with: | |
| unityVersion: 6000.0.58f2 | |
| projectPath: './examples/passport-unity6' | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| testMode: 'EditMode' | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: Unity6-Test-results | |
| path: ${{ steps.unity6Test.outputs.artifactsPath }} | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: Unity6-Coverage-results | |
| path: ${{ steps.unity6Test.outputs.coveragePath }} | |
| build: | |
| needs: test | |
| name: Build for ${{ matrix.targetPlatform }} | |
| runs-on: ubuntu-latest-8-cores | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| targetPlatform: | |
| - iOS | |
| - Android | |
| # - StandaloneOSX | |
| - StandaloneWindows64 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - uses: actions/cache@v3 | |
| with: | |
| path: Library | |
| key: | |
| Library-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | |
| restore-keys: | | |
| Library-${{ matrix.targetPlatform }} | |
| Library- | |
| - uses: game-ci/unity-builder@v4 | |
| env: | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | |
| with: | |
| unityVersion: 2021.3.26f1 | |
| targetPlatform: ${{ matrix.targetPlatform }} | |
| projectPath: examples/passport | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: Build-${{ matrix.targetPlatform }} | |
| path: build | |
| build-unity6: | |
| needs: test-unity6 | |
| name: Build Unity 6 for ${{ matrix.targetPlatform }} | |
| runs-on: ubuntu-latest-8-cores | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| targetPlatform: | |
| - iOS | |
| # - Android | |
| - StandaloneWindows64 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| lfs: true | |
| - uses: actions/cache@v3 | |
| with: | |
| path: Library | |
| key: | |
| Library-Unity6-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} | |
| restore-keys: | | |
| Library-Unity6-${{ matrix.targetPlatform }} | |
| Library- | |
| - uses: game-ci/unity-builder@v4 | |
| env: | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | |
| with: | |
| unityVersion: 6000.0.58f2 | |
| targetPlatform: ${{ matrix.targetPlatform }} | |
| projectPath: examples/passport-unity6 | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: Build-Unity6-${{ matrix.targetPlatform }} | |
| path: build |