repod/.gitea/workflows/repod.yml
Michel Roux 6cd97896c7
All checks were successful
repod / xml (push) Successful in 21s
repod / php (push) Successful in 57s
repod / nodejs (push) Successful in 1m53s
Merge pull request 'Update actions/checkout action to v4' (#25) from renovate/actions-checkout-4.x into main
Reviewed-on: Xefir/RePod#25
2023-12-24 09:59:28 +00:00

46 lines
1.3 KiB
YAML

name: repod
on: [push]
jobs:
xml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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:
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
- run: composer install
- run: composer run lint
- run: composer run cs:check
- run: composer run psalm:check
nodejs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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: npm ci
- run: npm run lint
- run: npm run stylelint
- run: npm run build