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
Falko 2023-12-25 11:53:38 +01:00 committed by GitHub
parent ce074787fb
commit 7c242f70d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1357 additions and 1351 deletions

View File

@ -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

2700
dist/index.js generated vendored

File diff suppressed because it is too large Load Diff

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -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