Skip to content

Repair account creation via CLI #134

Repair account creation via CLI

Repair account creation via CLI #134

# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: GPL-2.0-or-later
name: nextcloudcmd provisioning tests
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review, closed]
paths:
- 'src/cmd/**'
- 'test/testnextcloudcmdprovisioning.cpp'
- 'test/CMakeLists.txt'
- '.github/workflows/nextcloudcmd-provisioning-tests.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
if: ${{ github.event.action != 'closed' && !github.event.pull_request.draft }}
name: nextcloudcmd provisioning tests
runs-on: ubuntu-latest
container: ghcr.io/nextcloud/continuous-integration-client-qt6:client-sid-6.10.2-2
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 1
- name: Configure and compile
run: |
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Debug -DQT_MAJOR_VERSION=6 -DQUICK_COMPILER=ON -DBUILD_UPDATER=ON -DBUILD_TESTING=1 -DCMAKE_CXX_FLAGS=-Werror
ninja nextcloudcmd NextcloudCmdProvisioningTest
- name: Run provisioning tests
run: |
cd build
useradd -m -s /bin/bash test
chown -R test:test .
su -c 'xvfb-run ctest -R NextcloudCmdProvisioning --output-on-failure' test