mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-02-04 02:43:19 +08:00
Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8a0e2865a | ||
|
|
627cf8f914 | ||
|
|
e9b4db003e | ||
|
|
45a1728dfb | ||
|
|
f854b54cb0 | ||
|
|
6948da8f6a | ||
|
|
922dcd8b1a | ||
|
|
c8909e4d5e | ||
|
|
060d1856e7 | ||
|
|
6bacc4484e | ||
|
|
892b3b8279 | ||
|
|
00afc45f14 | ||
|
|
868c383d7f | ||
|
|
54d8d414ea | ||
|
|
057deedeb0 | ||
|
|
d64e5a8b19 | ||
|
|
711a3ee644 | ||
|
|
39da97ffa3 | ||
|
|
1473c8f431 | ||
|
|
c210544758 | ||
|
|
f863c717a4 | ||
|
|
5423e61ad7 | ||
|
|
377244a880 |
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@@ -51,6 +51,7 @@ jobs:
|
|||||||
unityVersion: ${{ matrix.unityVersion }}
|
unityVersion: ${{ matrix.unityVersion }}
|
||||||
testMode: ${{ matrix.testMode }}
|
testMode: ${{ matrix.testMode }}
|
||||||
artifactsPath: ${{ matrix.testMode }}-artifacts
|
artifactsPath: ${{ matrix.testMode }}-artifacts
|
||||||
|
customParameters: -profile SomeProfile -someBoolean -someValue exampleValue
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: Test results for ${{ matrix.testMode }}
|
name: Test results for ${{ matrix.testMode }}
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -1,6 +1,6 @@
|
|||||||
# Unity - Test runner
|
# Unity - Test runner
|
||||||
|
|
||||||
[](https://github.com/webbertakken/unity-test-runner/actions?query=branch%3Amaster+workflow%3A%22Actions+%F0%9F%98%8E%22)
|
[](https://github.com/webbertakken/unity-test-runner/actions?query=branch%3Amaster+event%3Apush+workflow%3A"Actions%20%F0%9F%98%8E")
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ your license file and add it as a secret.
|
|||||||
Then, define the test step as follows:
|
Then, define the test step as follows:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: webbertakken/unity-test-runner@v1.2
|
- uses: webbertakken/unity-test-runner@v1.4
|
||||||
env:
|
env:
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
with:
|
with:
|
||||||
@@ -64,7 +64,7 @@ Instead, three variables will need to be set.
|
|||||||
Define the test step as follows:
|
Define the test step as follows:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: webbertakken/unity-test-runner@v1.2
|
- uses: webbertakken/unity-test-runner@v1.4
|
||||||
env:
|
env:
|
||||||
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
|
||||||
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
|
||||||
@@ -107,7 +107,7 @@ you can reference this path using the `id` of the test step.
|
|||||||
Example:
|
Example:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: webbertakken/unity-test-runner@v1.2
|
- uses: webbertakken/unity-test-runner@v1.4
|
||||||
id: myTestStep
|
id: myTestStep
|
||||||
(...)
|
(...)
|
||||||
```
|
```
|
||||||
@@ -179,7 +179,7 @@ jobs:
|
|||||||
key: Library-${{ matrix.projectPath }}
|
key: Library-${{ matrix.projectPath }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
Library-
|
Library-
|
||||||
- uses: webbertakken/unity-test-runner@v1.2
|
- uses: webbertakken/unity-test-runner@v1.4
|
||||||
id: tests
|
id: tests
|
||||||
with:
|
with:
|
||||||
projectPath: ${{ matrix.projectPath }}
|
projectPath: ${{ matrix.projectPath }}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -17,7 +17,7 @@ FULL_ARTIFACTS_PATH=$GITHUB_WORKSPACE/$ARTIFACTS_PATH
|
|||||||
#
|
#
|
||||||
# Display custom parameters
|
# Display custom parameters
|
||||||
#
|
#
|
||||||
echo "Using custom parameters \"$CUSTOM_PARAMETERS\"."
|
echo "Using custom parameters $CUSTOM_PARAMETERS."
|
||||||
|
|
||||||
# Set the modes for testing
|
# Set the modes for testing
|
||||||
case $TEST_MODE in
|
case $TEST_MODE in
|
||||||
@@ -82,7 +82,7 @@ if [ $EDIT_MODE = true ]; then
|
|||||||
-runTests \
|
-runTests \
|
||||||
-testPlatform editmode \
|
-testPlatform editmode \
|
||||||
-testResults "$FULL_ARTIFACTS_PATH/editmode-results.xml" \
|
-testResults "$FULL_ARTIFACTS_PATH/editmode-results.xml" \
|
||||||
"$CUSTOM_PARAMETERS"
|
$CUSTOM_PARAMETERS
|
||||||
|
|
||||||
# Catch exit code
|
# Catch exit code
|
||||||
EDIT_MODE_EXIT_CODE=$?
|
EDIT_MODE_EXIT_CODE=$?
|
||||||
|
|||||||
32
package.json
32
package.json
@@ -12,28 +12,28 @@
|
|||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.0",
|
"@actions/core": "^1.2.1",
|
||||||
"@actions/exec": "1.0.2",
|
"@actions/exec": "1.0.3",
|
||||||
"@actions/github": "^2.0.0"
|
"@actions/github": "^2.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "7.7.5",
|
"@babel/cli": "7.8.4",
|
||||||
"@babel/core": "7.7.5",
|
"@babel/core": "7.8.4",
|
||||||
"@babel/preset-env": "7.7.7",
|
"@babel/preset-env": "7.8.4",
|
||||||
"@zeit/ncc": "0.20.5",
|
"@zeit/ncc": "0.21.0",
|
||||||
"babel-eslint": "10.0.3",
|
"babel-eslint": "10.0.3",
|
||||||
"eslint": "6.7.2",
|
"eslint": "6.8.0",
|
||||||
"eslint-config-airbnb": "18.0.1",
|
"eslint-config-airbnb": "18.0.1",
|
||||||
"eslint-config-prettier": "6.7.0",
|
"eslint-config-prettier": "6.10.0",
|
||||||
"eslint-plugin-flowtype": "4.5.2",
|
"eslint-plugin-flowtype": "4.6.0",
|
||||||
"eslint-plugin-import": "2.19.1",
|
"eslint-plugin-import": "2.20.1",
|
||||||
"eslint-plugin-jsx-a11y": "6.2.3",
|
"eslint-plugin-jsx-a11y": "6.2.3",
|
||||||
"eslint-plugin-prettier": "3.1.2",
|
"eslint-plugin-prettier": "3.1.2",
|
||||||
"eslint-plugin-react": "7.17.0",
|
"eslint-plugin-react": "7.18.3",
|
||||||
"eslint-plugin-unicorn": "14.0.1",
|
"eslint-plugin-unicorn": "16.0.0",
|
||||||
"husky": "4.0.0-beta.5",
|
"husky": "4.2.1",
|
||||||
"jest": "24.9.0",
|
"jest": "25.1.0",
|
||||||
"lint-staged": "9.5.0",
|
"lint-staged": "10.0.7",
|
||||||
"lodash-es": "4.17.15",
|
"lodash-es": "4.17.15",
|
||||||
"prettier": "1.19.1"
|
"prettier": "1.19.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ class Docker {
|
|||||||
--env UNITY_EMAIL \
|
--env UNITY_EMAIL \
|
||||||
--env UNITY_PASSWORD \
|
--env UNITY_PASSWORD \
|
||||||
--env UNITY_SERIAL \
|
--env UNITY_SERIAL \
|
||||||
--env UNITY_VERSION=${unityVersion} \
|
--env UNITY_VERSION="${unityVersion}" \
|
||||||
--env PROJECT_PATH=${projectPath} \
|
--env PROJECT_PATH="${projectPath}" \
|
||||||
--env TEST_MODE=${testMode} \
|
--env TEST_MODE="${testMode}" \
|
||||||
--env ARTIFACTS_PATH=${artifactsPath} \
|
--env ARTIFACTS_PATH="${artifactsPath}" \
|
||||||
--env CUSTOM_PARAMETERS=${customParameters} \
|
--env CUSTOM_PARAMETERS="${customParameters}" \
|
||||||
--env HOME=/github/home \
|
--env HOME=/github/home \
|
||||||
--env GITHUB_REF \
|
--env GITHUB_REF \
|
||||||
--env GITHUB_SHA \
|
--env GITHUB_SHA \
|
||||||
|
|||||||
Reference in New Issue
Block a user