Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Müller <80399010+fmoc@users.noreply.github.com>2022-09-14 17:52:32 +0300
committerGitHub <noreply@github.com>2022-09-14 17:52:32 +0300
commita07a31b1b303ded60fa06ef3104048a62b574268 (patch)
treeabcb7fc6bfe1bea6514a4c5d573e5b17327ad7e9
parent05c1d52bb03f2aa7f38a8d9de7f0504f33dd8002 (diff)
Revert "Revert "CI: Run unit tests as non-root user""revert-10110-revert-10045-work/test
This reverts commit cfe1219c10886b2ada5f717e24bc84845b0c1b76.
-rw-r--r--.github/workflows/main.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d090d80d2..75532cc45 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -95,7 +95,12 @@ jobs:
- name: Run tests
run: |
- & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --src-dir "${env:GITHUB_WORKSPACE}" --test owncloud/owncloud-client
+ if($IsLinux) {
+ useradd -m testuser
+ runuser -u testuser -- pwsh "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --src-dir "${env:GITHUB_WORKSPACE}" --test owncloud/owncloud-client
+ } else {
+ & "${env:GITHUB_WORKSPACE}/.github/workflows/.craft.ps1" -c --no-cache --src-dir "${env:GITHUB_WORKSPACE}" --test owncloud/owncloud-client
+ }
- name: Sonarcloud
if: ${{ matrix.target == 'windows-msvc2019_64-cl' }}