repod/.gitea/workflows/repod.yml
Michel Roux ebe7a82aba
Some checks failed
repod / xml-linters (push) Failing after 44s
repod / nextcloud-25 (push) Successful in 43s
repod / nextcloud-27 (push) Successful in 36s
repod / nodejs (push) Successful in 1m59s
Add more tests on CI
2023-07-02 16:32:05 +02:00

60 lines
1.8 KiB
YAML

name: repod
on: [push]
jobs:
xml-linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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
nextcloud-25:
runs-on: ubuntu-latest
container: nextcloud:25
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
- uses: actions/checkout@v3
- 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
nextcloud-27:
runs-on: ubuntu-latest
container: nextcloud:27.0.0
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
- uses: actions/checkout@v3
- 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@v3
- uses: skjnldsv/read-package-engines-version-actions@v2
id: versions
with:
fallbackNode: '^12'
fallbackNpm: '^6'
- uses: actions/setup-node@v3
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