mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-01-29 06:20:07 +08:00
Set fullProjectPath variable in entrypoint.sh (#256)
* Set fullProjectPath variable in entrypoint.sh (#255) * Add test that runs as host user This should catch bugs like the one described in #255.
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -144,6 +144,9 @@ jobs:
|
||||
- 2023.2.2f1
|
||||
projectPath:
|
||||
- unity-project-with-correct-tests
|
||||
runAsHostUser:
|
||||
- true
|
||||
- false
|
||||
steps:
|
||||
###########################
|
||||
# Checkout #
|
||||
@@ -170,6 +173,7 @@ jobs:
|
||||
with:
|
||||
projectPath: ${{ matrix.projectPath }}
|
||||
unityVersion: ${{ matrix.unityVersion }}
|
||||
runAsHostUser: ${{ matrix.runAsHostUser }}
|
||||
testMode: editmode
|
||||
artifactsPath: artifacts/editmode
|
||||
|
||||
|
||||
2700
dist/index.js
generated
vendored
2700
dist/index.js
generated
vendored
File diff suppressed because it is too large
Load Diff
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/platforms/ubuntu/entrypoint.sh
vendored
2
dist/platforms/ubuntu/entrypoint.sh
vendored
@@ -9,6 +9,8 @@ fi
|
||||
if [[ "$RUN_AS_HOST_USER" == "true" ]]; then
|
||||
echo "Running as host user"
|
||||
|
||||
fullProjectPath="$GITHUB_WORKSPACE/$PROJECT_PATH"
|
||||
|
||||
# Stop on error if we can't set up the user
|
||||
set -e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user