diff --git a/.github/workflows/configNC.sh b/.github/workflows/configNC.sh new file mode 100644 index 0000000000..6b7b8081b8 --- /dev/null +++ b/.github/workflows/configNC.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +# Nextcloud Android Library +# +# SPDX-FileCopyrightText: 2024 Your Name +# SPDX-License-Identifier: MIT +# + +OC_PASS=user1 php /var/www/html/occ user:add --password-from-env --display-name='User One' user1 +OC_PASS=user2 php /var/www/html/occ user:add --password-from-env --display-name='User Two' user2 +OC_PASS=user3 php /var/www/html/occ user:add --password-from-env --display-name='User Three' user3 +php /var/www/html/occ user:setting user2 files quota 1G +php /var/www/html/occ group:add users +php /var/www/html/occ group:adduser users user1 +php /var/www/html/occ group:adduser users user2 +git clone -b master https://github.com/nextcloud/activity.git /var/www/html/apps/activity/ +php /var/www/html/occ app:enable activity +git clone -b main https://github.com/nextcloud/text.git /var/www/html/apps/text/ +php /var/www/html/occ app:enable text +git clone -b master https://github.com/nextcloud/end_to_end_encryption/ /var/www/html/apps/end_to_end_encryption/ +php /var/www/html/occ app:enable end_to_end_encryption +git clone https://github.com/nextcloud/photos.git /var/www/html/apps/photos/ +cd /var/www/html/apps/photos; composer install +php /var/www/html/occ app:enable -f photos diff --git a/.github/workflows/configServer.sh b/.github/workflows/configServer.sh new file mode 100644 index 0000000000..915e8e11b2 --- /dev/null +++ b/.github/workflows/configServer.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# Nextcloud Android Library +# +# SPDX-FileCopyrightText: 2024 Your Name +# SPDX-License-Identifier: MIT +# + +apt-get update && apt-get install -y composer + +/usr/local/bin/initnc.sh diff --git a/.github/workflows/endToEndTest.yml b/.github/workflows/garm.yml similarity index 90% rename from .github/workflows/endToEndTest.yml rename to .github/workflows/garm.yml index 267616fd13..b496be3a7f 100644 --- a/.github/workflows/endToEndTest.yml +++ b/.github/workflows/garm.yml @@ -1,7 +1,7 @@ # SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors # SPDX-License-Identifier: AGPL-3.0-or-later -name: "Screenshot Test" +name: "Garm" on: pull_request: @@ -17,6 +17,7 @@ jobs: services: server: image: ghcr.io/nextcloud/continuous-integration-shallow-server:latest + options: --name server ports: - 80:80 strategy: @@ -35,6 +36,16 @@ jobs: sleep 5 done + - name: configure server + run: | + docker cp .github/workflows/configServer.sh server:/tmp/ + docker exec server chmod +x /tmp/configServer.sh + docker exec server /tmp/configServer.sh + docker cp .github/workflows/configNC.sh server:/tmp/ + docker exec server chmod +x /tmp/configNC.sh + docker exec --user www-data server /tmp/configNC.sh + docker exec server /usr/local/bin/run.sh + - name: Enable KVM group perms run: | echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml deleted file mode 100644 index ec41e61ef0..0000000000 --- a/.github/workflows/reuse.yml +++ /dev/null @@ -1,17 +0,0 @@ -# synced from @nextcloud/android-config - -# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. -# -# SPDX-License-Identifier: CC0-1.0 - -name: REUSE Compliance Check - -on: [push, pull_request] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - name: REUSE Compliance Check - uses: fsfe/reuse-action@a46482ca367aef4454a87620aa37c2be4b2f8106 # v3.0.0