diff --git a/.github/workflows/node-build.yml b/.github/workflows/node-build.yml
new file mode 100644
index 00000000..208a1fde
--- /dev/null
+++ b/.github/workflows/node-build.yml
@@ -0,0 +1,53 @@
+name: Node Build
+
+on:
+ pull_request:
+ paths:
+ - src/**
+ - .eslintrc.js
+ - stylelint.config.js
+ - webpack.js
+ push:
+ branches:
+ - main
+ paths:
+ - src/**
+ - .eslintrc.js
+ - stylelint.config.js
+ - webpack.js
+
+jobs:
+ build:
+ name: node-build
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Set app env
+ run: echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
+
+ - name: Checkout
+ uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab #
+ with:
+ path: ${{ env.APP_NAME }}
+
+ - name: Read package.json node and npm engines version
+ uses: skjnldsv/read-package-engines-version-actions@0ce2ed60f6df073a62a77c0a4958dd0fc68e32e7 # v2.1
+ id: versions
+ with:
+ path: ${{ env.APP_NAME }}
+ fallbackNode: "^20"
+ fallbackNpm: "^9"
+
+ - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
+ uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
+ with:
+ node-version: ${{ steps.versions.outputs.nodeVersion }}
+
+ - name: Set up npm ${{ steps.versions.outputs.npmVersion }}
+ run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
+
+ - name: Build ${{ env.APP_NAME }}
+ run: |
+ cd ${{ env.APP_NAME }}
+ npm ci
+ npm run build
diff --git a/.github/workflows/tests-deploy.yml b/.github/workflows/tests-deploy.yml
index 428c3d0c..b8b74013 100644
--- a/.github/workflows/tests-deploy.yml
+++ b/.github/workflows/tests-deploy.yml
@@ -23,8 +23,10 @@ jobs:
php-version: [ '8.1' ]
server-version: [ 'stable27' ]
include:
- - server-version: "master"
+ - server-version: "stable28"
php-version: "8.2"
+ - server-version: "master"
+ php-version: "8.3"
services:
postgres:
@@ -60,10 +62,10 @@ jobs:
with:
path: apps/${{ env.APP_NAME }}
- - name: Set up php ${{ matrix.php-versions }}
+ - name: Set up php ${{ matrix.php-version }}
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
- php-version: ${{ matrix.php-versions }}
+ php-version: ${{ matrix.php-version }}
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql
coverage: none
ini-file: development
@@ -419,10 +421,10 @@ jobs:
with:
path: apps/${{ env.APP_NAME }}
- - name: Set up php ${{ matrix.php-versions }}
+ - name: Set up php ${{ matrix.php-version }}
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
- php-version: ${{ matrix.php-versions }}
+ php-version: ${{ matrix.php-version }}
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql, redis
coverage: none
ini-file: development
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index e418c59e..67b82a24 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -23,8 +23,10 @@ jobs:
php-version: [ '8.1' ]
server-version: [ 'stable27' ]
include:
- - server-version: "master"
+ - server-version: "stable28"
php-version: "8.2"
+ - server-version: "master"
+ php-version: "8.3"
env:
NEXTCLOUD_URL: "http://localhost:8080/"
APP_ID: "nc_py_api"
@@ -71,10 +73,10 @@ jobs:
with:
path: apps/${{ env.APP_NAME }}
- - name: Set up php ${{ matrix.php-versions }}
+ - name: Set up php ${{ matrix.php-version }}
uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2
with:
- php-version: ${{ matrix.php-versions }}
+ php-version: ${{ matrix.php-version }}
extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, session, simplexml, xmlreader, xmlwriter, zip, zlib, pgsql, pdo_pgsql
coverage: none
ini-file: development
diff --git a/appinfo/info.xml b/appinfo/info.xml
index 9c196b75..0f34595e 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -59,7 +59,7 @@ to join us in shaping a more versatile, stable, and secure app landscape.
https://raw.githubusercontent.com/cloud-py-api/app_api/main/screenshots/app_api_admin_settings.png
-
+