Skip to content

Commit b8d3f48

Browse files
authored
Merge pull request #24 from IvanMurzak/unity-version-badges
Unity Tests badges
2 parents cf715aa + 38c389d commit b8d3f48

File tree

13 files changed

+182
-95
lines changed

13 files changed

+182
-95
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 2019.4.40f1-Editor
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
editor-tests:
13+
uses: ./.github/workflows/main.yml
14+
with:
15+
projectPath: './'
16+
unityVersion: '2019.4.40f1'
17+
testMode: 'editmode'
18+
secrets: inherit
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 2020.3.40f1-Editor
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
editor-tests:
13+
uses: ./.github/workflows/main.yml
14+
with:
15+
projectPath: './'
16+
unityVersion: '2020.3.40f1'
17+
testMode: 'editmode'
18+
secrets: inherit
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 2021.3.45f1-Editor
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
editor-tests:
13+
uses: ./.github/workflows/main.yml
14+
with:
15+
projectPath: './'
16+
unityVersion: '2021.3.45f1'
17+
testMode: 'editmode'
18+
secrets: inherit
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 2022.3.57f1-Editor
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
editor-tests:
13+
uses: ./.github/workflows/main.yml
14+
with:
15+
projectPath: './'
16+
unityVersion: '2022.3.57f1'
17+
testMode: 'editmode'
18+
secrets: inherit
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 2023.1.20f1-Editor
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
editor-tests:
13+
uses: ./.github/workflows/main.yml
14+
with:
15+
projectPath: './'
16+
unityVersion: '2023.1.20f1'
17+
testMode: 'editmode'
18+
secrets: inherit
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 2023.2.20f1-Editor
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
editor-tests:
13+
uses: ./.github/workflows/main.yml
14+
with:
15+
projectPath: './'
16+
unityVersion: '2023.2.20f1'
17+
testMode: 'editmode'
18+
secrets: inherit
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 6000.0.37f1-Editor
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
editor-tests:
13+
uses: ./.github/workflows/main.yml
14+
with:
15+
projectPath: './'
16+
unityVersion: '6000.0.37f1'
17+
testMode: 'editmode'
18+
secrets: inherit

.github/workflows/main.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Editor Tests
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
projectPath:
7+
required: true
8+
type: string
9+
unityVersion:
10+
required: true
11+
type: string
12+
testMode:
13+
required: true
14+
type: string
15+
secrets:
16+
UNITY_LICENSE:
17+
required: true
18+
UNITY_EMAIL:
19+
required: true
20+
UNITY_PASSWORD:
21+
required: true
22+
23+
jobs:
24+
test:
25+
name: ${{ inputs.unityVersion }} ${{ inputs.testMode }}
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
with:
30+
lfs: false
31+
- uses: actions/cache@v4
32+
with:
33+
path: ${{ inputs.projectPath }}/Library
34+
key: Library-${{ inputs.unityVersion }}
35+
restore-keys: |
36+
Library-
37+
- uses: game-ci/unity-test-runner@v4
38+
id: tests
39+
env:
40+
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
41+
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
42+
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
43+
with:
44+
projectPath: ${{ inputs.projectPath }}
45+
unityVersion: ${{ inputs.unityVersion }}
46+
testMode: ${{ inputs.testMode }}
47+
artifactsPath: ${{ inputs.testMode }}-artifacts
48+
githubToken: ${{ secrets.GITHUB_TOKEN }}
49+
checkName: ${{ inputs.unityVersion }} ${{ inputs.testMode }} Test Results

.github/workflows/unity-tests.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"cSpell.words": [
5656
"ARGB",
5757
"cysharp",
58+
"editmode",
5859
"imageloader",
5960
"Murzak",
6061
"openupm",

0 commit comments

Comments
 (0)