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.pull/258/head v4.1.1
parent
ce074787fb
commit
7c242f70d9
|
@ -144,6 +144,9 @@ jobs:
|
||||||
- 2023.2.2f1
|
- 2023.2.2f1
|
||||||
projectPath:
|
projectPath:
|
||||||
- unity-project-with-correct-tests
|
- unity-project-with-correct-tests
|
||||||
|
runAsHostUser:
|
||||||
|
- true
|
||||||
|
- false
|
||||||
steps:
|
steps:
|
||||||
###########################
|
###########################
|
||||||
# Checkout #
|
# Checkout #
|
||||||
|
@ -170,6 +173,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
projectPath: ${{ matrix.projectPath }}
|
projectPath: ${{ matrix.projectPath }}
|
||||||
unityVersion: ${{ matrix.unityVersion }}
|
unityVersion: ${{ matrix.unityVersion }}
|
||||||
|
runAsHostUser: ${{ matrix.runAsHostUser }}
|
||||||
testMode: editmode
|
testMode: editmode
|
||||||
artifactsPath: artifacts/editmode
|
artifactsPath: artifacts/editmode
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -9,6 +9,8 @@ fi
|
||||||
if [[ "$RUN_AS_HOST_USER" == "true" ]]; then
|
if [[ "$RUN_AS_HOST_USER" == "true" ]]; then
|
||||||
echo "Running as host user"
|
echo "Running as host user"
|
||||||
|
|
||||||
|
fullProjectPath="$GITHUB_WORKSPACE/$PROJECT_PATH"
|
||||||
|
|
||||||
# Stop on error if we can't set up the user
|
# Stop on error if we can't set up the user
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue