2023-06-27 12:47:16 +00:00
|
|
|
name: repod
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2023-12-23 22:56:29 +00:00
|
|
|
xml:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-12-24 06:42:48 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-23 22:56:29 +00: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 12:47:16 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-12-23 16:33:10 +00:00
|
|
|
container: nextcloud:26
|
2023-06-27 12:47:16 +00:00
|
|
|
steps:
|
|
|
|
- run: apt-get update
|
|
|
|
- run: apt-get install -y git nodejs
|
2023-12-24 06:42:48 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-06-27 12:47:16 +00: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 06:42:48 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-07-02 14:32:05 +00:00
|
|
|
- uses: skjnldsv/read-package-engines-version-actions@v2
|
|
|
|
id: versions
|
|
|
|
with:
|
2023-07-18 18:58:57 +00:00
|
|
|
fallbackNode: '^20.0.0'
|
|
|
|
fallbackNpm: '^9.0.0'
|
2023-12-24 06:42:52 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2023-07-02 14:32:05 +00:00
|
|
|
with:
|
|
|
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
|
|
|
- run: npm i -g npm@${{ steps.versions.outputs.npmVersion }}
|
2023-06-27 12:52:09 +00:00
|
|
|
- run: npm ci
|
2023-06-27 12:47:16 +00:00
|
|
|
- run: npm run lint
|
|
|
|
- run: npm run stylelint
|
|
|
|
- run: npm run build
|
2024-01-11 07:56:30 +00:00
|
|
|
|
|
|
|
release:
|
2024-01-11 08:04:15 +00:00
|
|
|
if: startsWith(gitea.ref, 'refs/tags')
|
2024-01-11 07:56:30 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: nextcloud:26
|
|
|
|
steps:
|
|
|
|
- run: apt-get update
|
|
|
|
- run: apt-get install -y git nodejs
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- run: curl -sSLo /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar
|
|
|
|
- run: chmod +x /usr/local/bin/composer
|
|
|
|
- uses: skjnldsv/read-package-engines-version-actions@v2
|
|
|
|
id: versions
|
|
|
|
with:
|
|
|
|
fallbackNode: '^20.0.0'
|
|
|
|
fallbackNpm: '^9.0.0'
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
|
|
|
- run: npm i -g npm@${{ steps.versions.outputs.npmVersion }}
|
|
|
|
- run: make dist
|
|
|
|
- uses: akkuman/gitea-release-action@v1
|
|
|
|
with:
|
|
|
|
files: |
|
|
|
|
build/artifacts/RePod.tar.gz
|