|
1 | 1 | name: validate |
2 | 2 | on: |
3 | 3 | push: |
4 | | - branches: |
5 | | - - 'main' |
| 4 | + branches: ['main'] |
6 | 5 | pull_request: |
7 | | - branches: |
8 | | - - '**' |
9 | | - # Allows you to run this workflow manually from the Actions tab |
10 | | - workflow_dispatch: |
| 6 | + branches: ['**'] |
| 7 | + workflow_dispatch: # Allows you to run this workflow manually from the Actions tab |
11 | 8 | concurrency: |
12 | 9 | group: ${{ github.workflow }}-${{ github.ref }} |
13 | 10 | cancel-in-progress: true |
@@ -40,38 +37,38 @@ jobs: |
40 | 37 | unity-version: 6000.x |
41 | 38 | build-target: StandaloneOSX |
42 | 39 | steps: |
43 | | - - uses: actions/checkout@v4 |
44 | | - - uses: actions/checkout@v4 |
| 40 | + - uses: actions/checkout@v5 # checkout self |
| 41 | + - uses: actions/checkout@v5 # checkout async test repo |
45 | 42 | with: |
46 | 43 | repository: RageAgainstThePixel/com.utilities.async |
47 | 44 | path: com.utilities.async |
48 | | - - uses: RageAgainstThePixel/unity-setup@v1 |
| 45 | + - uses: RageAgainstThePixel/unity-setup@v2 |
49 | 46 | with: |
50 | 47 | unity-version: ${{ matrix.unity-version }} |
51 | 48 | build-targets: ${{ matrix.build-target }} |
52 | 49 | version-file: ${{ github.workspace }}/com.utilities.async/Utilities.Async/ProjectSettings/ProjectVersion.txt |
53 | | - - uses: RageAgainstThePixel/activate-unity-license@v1 |
| 50 | + - uses: RageAgainstThePixel/activate-unity-license@v2 |
54 | 51 | with: |
55 | | - license: 'Personal' |
| 52 | + license: personal |
56 | 53 | username: ${{ secrets.UNITY_USERNAME }} |
57 | 54 | password: ${{ secrets.UNITY_PASSWORD }} |
58 | | - - uses: RageAgainstThePixel/unity-action@v1 |
59 | | - name: '${{ matrix.build-target }}-Validate' |
| 55 | + - uses: RageAgainstThePixel/unity-action@v3 |
| 56 | + name: ${{ matrix.build-target }}-Validate |
60 | 57 | with: |
61 | | - log-name: '${{ matrix.build-target }}-Validate' |
62 | | - args: '-quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset' |
63 | | - - uses: RageAgainstThePixel/unity-action@v1 |
64 | | - name: '${{ matrix.build-target }}-Test' |
| 58 | + log-name: ${{ matrix.build-target }}-Validate |
| 59 | + args: -quit -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset |
| 60 | + - uses: RageAgainstThePixel/unity-action@v3 |
| 61 | + name: ${{ matrix.build-target }}-Test |
65 | 62 | with: |
66 | | - log-name: '${{ matrix.build-target }}-Test' |
| 63 | + log-name: ${{ matrix.build-target }}-Test |
67 | 64 | build-target: ${{ matrix.build-target }} |
68 | | - args: '-nographics -batchmode -runTests -testPlatform EditMode -testResults "${{ github.workspace }}/Logs/${{ matrix.build-target }}-results.xml"' |
| 65 | + args: -runTests -testPlatform EditMode -testResults "${{ github.workspace }}/Logs/${{ matrix.build-target }}-results.xml" |
69 | 66 | - uses: actions/upload-artifact@v4 |
70 | 67 | if: success() || failure() |
71 | 68 | with: |
72 | 69 | compression-level: 0 |
73 | 70 | retention-days: 1 |
74 | | - name: '${{ github.run_number }}.${{ github.run_attempt }}-${{ matrix.os }}-${{ matrix.unity-version }}-${{ matrix.build-target }}-Artifacts' |
| 71 | + name: ${{ github.run_number }}.${{ github.run_attempt }}-${{ matrix.os }}-${{ matrix.unity-version }}-${{ matrix.build-target }}-Artifacts |
75 | 72 | path: | |
76 | 73 | ${{ github.workspace }}/**/*.log |
77 | 74 | - uses: ./ # RageAgainstThePixel/unity-test-summary |
|
0 commit comments