Skip to content

Commit 798977b

Browse files
authored
Merge branch 'master' into unity2021
2 parents 8f98c80 + 90d1636 commit 798977b

File tree

10 files changed

+33
-22
lines changed

10 files changed

+33
-22
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ updates:
33
- package-ecosystem: github-actions
44
directory: /
55
schedule:
6-
interval: daily
6+
interval: weekly

.github/workflows/actionlint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717
jobs:
1818
actionlint:
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 5
2021
permissions:
2122
contents: read
2223
actions: read

.github/workflows/metacheck.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
jobs:
1414
meta-check:
1515
runs-on: ubuntu-latest
16+
timeout-minutes: 5
1617
permissions:
1718
contents: read
1819
actions: read
@@ -23,7 +24,7 @@ jobs:
2324
submodules: false
2425
lfs: false
2526

26-
- uses: DeNA/unity-meta-check@v3
27+
- uses: DeNA/unity-meta-check@v4
2728

2829
- uses: 8398a7/action-slack@v3
2930
with:

.github/workflows/test-integration.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
test:
2727
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.
2828
runs-on: ${{ github.event.inputs.runner }}
29+
timeout-minutes: 15
2930
permissions:
3031
contents: read
3132
checks: write
@@ -45,12 +46,14 @@ jobs:
4546
submodules: false
4647
lfs: false
4748

48-
- uses: buildjet/cache@v3
49+
- uses: buildjet/cache@v4
4950
with:
5051
path: Library
51-
key: Library-${{ matrix.unityVersion }}
52+
key: Library-linux-${{ matrix.unityVersion }}-${{ github.ref }}
5253
restore-keys: |
53-
Library-
54+
Library-linux-${{ matrix.unityVersion }}
55+
Library-linux
56+
Library
5457
5558
- name: Set coverage assembly filters
5659
run: |
@@ -90,11 +93,12 @@ jobs:
9093
needs: test
9194
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.
9295
runs-on: ubuntu-latest
96+
timeout-minutes: 5
9397
permissions:
9498
actions: read
9599

96100
steps:
97-
- uses: Gamesight/slack-workflow-status@v1.2.0
101+
- uses: Gamesight/slack-workflow-status@v1.3.0
98102
with:
99103
repo_token: ${{ secrets.GITHUB_TOKEN }}
100104
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
test:
2727
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.
2828
runs-on: ubuntu-latest
29+
timeout-minutes: 15
2930
permissions:
3031
contents: read
3132
checks: write
@@ -52,9 +53,11 @@ jobs:
5253
- uses: actions/cache@v4
5354
with:
5455
path: Library
55-
key: Library-${{ matrix.unityVersion }}
56+
key: Library-linux-${{ matrix.unityVersion }}-${{ github.ref }}
5657
restore-keys: |
57-
Library-
58+
Library-linux-${{ matrix.unityVersion }}
59+
Library-linux
60+
Library
5861
5962
- name: Set coverage assembly filters
6063
run: |
@@ -102,11 +105,12 @@ jobs:
102105
needs: test
103106
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.
104107
runs-on: ubuntu-latest
108+
timeout-minutes: 5
105109
permissions:
106110
actions: read
107111

108112
steps:
109-
- uses: Gamesight/slack-workflow-status@v1.2.0
113+
- uses: Gamesight/slack-workflow-status@v1.3.0
110114
with:
111115
repo_token: ${{ secrets.GITHUB_TOKEN }}
112116
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}

.idea/.idea.UnityTestExamples/.idea/.gitignore

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.octocov.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@ coverage:
33
if: true
44
paths:
55
- ./Logs/Report/lcov.info # Warning: This path is replace by regex in test.yml
6+
67
codeToTestRatio:
78
code:
89
- 'Assets/**/*.cs'
910
- 'Packages/**/*.cs'
10-
- '!**/Tests/**/*.cs'
11+
- 'LocalPackages/**/*.cs'
12+
- '!**/Tests/**'
1113
test:
1214
- '**/Tests/**/*.cs'
15+
- '!Library/**'
16+
1317
testExecutionTime:
1418
if: true
1519
diff:
20+
1621
datastores:
1722
- artifact://${GITHUB_REPOSITORY}
1823

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ endif
4949

5050
define base_arguments
5151
-projectPath $(PROJECT_HOME) \
52-
-logFile $(LOG_DIR)/test_$(TEST_PLATFORM).log
52+
-logFile $(LOG_DIR)/$(TEST_PLATFORM).log
5353
endef
5454

5555
define test_arguments
@@ -62,7 +62,9 @@ $(TEST_CATEGORY) \
6262
$(TEST_FILTER) \
6363
$(ASSEMBLY_NAMES) \
6464
-testPlatform $(TEST_PLATFORM) \
65-
-testResults $(LOG_DIR)/test_$(TEST_PLATFORM)_results.xml
65+
-testResults $(LOG_DIR)/$(TEST_PLATFORM)-results.xml \
66+
-testHelperJUnitResults $(LOG_DIR)/$(TEST_PLATFORM)-junit-results.xml \
67+
-testHelperScreenshotDirectory $(LOG_DIR)/Screenshots
6668
endef
6769

6870
define test

Packages/manifest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
"com.unity.collab-proxy": "1.14.18",
1111
"com.unity.ide.rider": "3.0.26",
1212
"com.unity.ide.visualstudio": "2.0.22",
13-
"com.unity.ide.vscode": "1.2.5",
1413
"com.unity.inputsystem": "1.7.0",
15-
"com.unity.test-framework": "1.4.3",
14+
"com.unity.test-framework": "1.4.5",
1615
"com.unity.testframework.graphics": "7.17.0-exp.1",
1716
"com.unity.testtools.codecoverage": "1.2.4",
1817
"com.unity.textmeshpro": "2.1.6",

Packages/packages-lock.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@
116116
},
117117
"url": "https://packages.unity.com"
118118
},
119-
"com.unity.ide.vscode": {
120-
"version": "1.2.5",
121-
"depth": 0,
122-
"source": "registry",
123-
"dependencies": {},
124-
"url": "https://packages.unity.com"
125-
},
126119
"com.unity.inputsystem": {
127120
"version": "1.7.0",
128121
"depth": 0,
@@ -154,7 +147,7 @@
154147
"url": "https://packages.unity.com"
155148
},
156149
"com.unity.test-framework": {
157-
"version": "1.4.3",
150+
"version": "1.4.5",
158151
"depth": 0,
159152
"source": "registry",
160153
"dependencies": {

0 commit comments

Comments
 (0)