2023-06-27 14:47:16 +02:00
|
|
|
name: repod
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2023-12-23 23:56:29 +01:00
|
|
|
xml:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-12-24 07:42:48 +01:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-23 23:56:29 +01:00
|
|
|
- run: wget https://raw.githubusercontent.com/nextcloud/appstore/master/nextcloudappstore/api/v1/release/info.xsd
|
|
|
|
- uses: ChristophWurst/xmllint-action@v1
|
|
|
|
with:
|
|
|
|
xml-file: ./appinfo/info.xml
|
|
|
|
xml-schema-file: ./info.xsd
|
|
|
|
|
|
|
|
php:
|
2023-06-27 14:47:16 +02:00
|
|
|
runs-on: ubuntu-latest
|
2023-12-23 17:33:10 +01:00
|
|
|
container: nextcloud:26
|
2023-06-27 14:47:16 +02:00
|
|
|
steps:
|
|
|
|
- run: apt-get update
|
|
|
|
- run: apt-get install -y git nodejs
|
2023-12-24 07:42:48 +01:00
|
|
|
- uses: actions/checkout@v4
|
2023-06-27 14:47:16 +02:00
|
|
|
- run: curl -sSLo /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar
|
|
|
|
- run: chmod +x /usr/local/bin/composer
|
|
|
|
- run: composer install
|
|
|
|
- run: composer run lint
|
|
|
|
- run: composer run cs:check
|
|
|
|
- run: composer run psalm:check
|
|
|
|
|
|
|
|
nodejs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-12-24 07:42:48 +01:00
|
|
|
- uses: actions/checkout@v4
|
2023-07-02 16:32:05 +02:00
|
|
|
- uses: skjnldsv/read-package-engines-version-actions@v2
|
|
|
|
id: versions
|
|
|
|
with:
|
2023-07-18 20:58:57 +02:00
|
|
|
fallbackNode: '^20.0.0'
|
|
|
|
fallbackNpm: '^9.0.0'
|
2023-12-24 07:42:52 +01:00
|
|
|
- uses: actions/setup-node@v4
|
2023-07-02 16:32:05 +02:00
|
|
|
with:
|
|
|
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
|
|
|
- run: npm i -g npm@${{ steps.versions.outputs.npmVersion }}
|
2023-06-27 14:52:09 +02:00
|
|
|
- run: npm ci
|
2023-06-27 14:47:16 +02:00
|
|
|
- run: npm run lint
|
|
|
|
- run: npm run stylelint
|
|
|
|
- run: npm run build
|