From e593608a8099a15c3671b2bda6d93c356576eb1c Mon Sep 17 00:00:00 2001 From: filzmann Date: Wed, 15 Jul 2026 13:35:08 +0200 Subject: [PATCH 1/2] ci: schnelle Tests automatisieren --- .github/workflows/tests.yml | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..b06d767 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,64 @@ +name: Tests + +on: + push: + pull_request: + +permissions: + contents: read + +concurrency: + group: tests-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + php: + name: PHP ${{ matrix.php-version }} + runs-on: ubuntu-24.04 + timeout-minutes: 10 + strategy: + fail-fast: false + matrix: + php-version: ['8.3', '8.5'] + steps: + - name: App auschecken + uses: actions/checkout@v7 + with: + path: app + - name: LocalBase auschecken + uses: actions/checkout@v7 + with: + repository: Filzmann/nextcloud-localbase + path: localbase + - name: PHP einrichten + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + coverage: none + tools: none + - name: PHP-Tests + working-directory: app + run: php tests/run.php + + javascript: + name: JavaScript + runs-on: ubuntu-24.04 + timeout-minutes: 10 + steps: + - name: App auschecken + uses: actions/checkout@v7 + with: + path: app + - name: LocalBase auschecken + uses: actions/checkout@v7 + with: + repository: Filzmann/nextcloud-localbase + path: localbase + - name: Node.js einrichten + uses: actions/setup-node@v6 + with: + node-version: 24 + package-manager-cache: false + - name: JavaScript-Tests + working-directory: app + run: node tests/run-js.mjs From 68200239aed765d28ba16d6032412b9989938842 Mon Sep 17 00:00:00 2001 From: filzmann Date: Wed, 15 Jul 2026 13:40:33 +0200 Subject: [PATCH 2/2] =?UTF-8?q?ci:=20Branch-Pr=C3=BCfungen=20entdoppeln?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b06d767..87c6d71 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,6 +2,7 @@ name: Tests on: push: + branches: [main] pull_request: permissions: