-
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (77 loc) · 2.96 KB
/
Copy pathvalidate.yml
File metadata and controls
77 lines (77 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: validate
on:
push:
branches: ['main']
pull_request:
branches: ['**']
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
validate:
runs-on: ${{ matrix.os }}
permissions:
contents: read
actions: write
strategy:
fail-fast: false
matrix:
include: # for each os specify the build targets
- os: ubuntu-latest
unity-version: 2022.x
build-target: StandaloneLinux64
- os: ubuntu-latest
unity-version: 6000.x
build-target: StandaloneLinux64
- os: windows-latest
unity-version: 2022.x
build-target: StandaloneWindows64
- os: windows-latest
unity-version: 6000.x
build-target: StandaloneWindows64
- os: macos-latest
unity-version: 2022.x
build-target: StandaloneOSX
- os: macos-latest
unity-version: 6000.x
build-target: StandaloneOSX
steps:
- uses: actions/checkout@v5 # checkout self
- uses: actions/checkout@v5 # checkout async test repo
with:
repository: RageAgainstThePixel/com.utilities.async
path: com.utilities.async
- uses: RageAgainstThePixel/unity-setup@v2
with:
unity-version: ${{ matrix.unity-version }}
build-targets: ${{ matrix.build-target }}
version-file: ${{ github.workspace }}/com.utilities.async/Utilities.Async/ProjectSettings/ProjectVersion.txt
- uses: RageAgainstThePixel/activate-unity-license@v2
with:
license: personal
username: ${{ secrets.UNITY_USERNAME }}
password: ${{ secrets.UNITY_PASSWORD }}
- uses: RageAgainstThePixel/unity-action@v3
name: ${{ matrix.build-target }}-Validate
with:
log-name: ${{ matrix.build-target }}-Validate
args: -quit -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.ValidateProject -importTMProEssentialsAsset
- uses: RageAgainstThePixel/unity-action@v3
name: ${{ matrix.build-target }}-Test
with:
log-name: ${{ matrix.build-target }}-Test
build-target: ${{ matrix.build-target }}
args: -runTests -testPlatform EditMode -testResults "${{ github.workspace }}/Logs/${{ matrix.build-target }}-results.xml"
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
compression-level: 0
retention-days: 1
name: ${{ github.run_number }}.${{ github.run_attempt }}-${{ matrix.os }}-${{ matrix.unity-version }}-${{ matrix.build-target }}-Artifacts
path: |
${{ github.workspace }}/**/*.log
- uses: ./ # RageAgainstThePixel/unity-test-summary
if: success() || failure()
with:
test-results: ${{ github.workspace }}/Logs/*-results.xml