Add more tests on CI
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

This commit is contained in:
Michel Roux 2023-07-02 16:32:05 +02:00
parent 5312f7a7dc
commit ebe7a82aba
2 changed files with 23 additions and 0 deletions

View File

@ -2,6 +2,16 @@ name: repod
on: [push] on: [push]
jobs: 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: nextcloud-25:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: nextcloud:25 container: nextcloud:25
@ -34,6 +44,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - 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 ci
- run: npm run lint - run: npm run lint
- run: npm run stylelint - run: npm run stylelint

View File

@ -28,6 +28,10 @@
"browserslist": [ "browserslist": [
"extends @nextcloud/browserslist-config" "extends @nextcloud/browserslist-config"
], ],
"engines": {
"node": "^16.0.0",
"npm": "^7.0.0 || ^8.0.0"
},
"devDependencies": { "devDependencies": {
"@nextcloud/babel-config": "^1.0.0", "@nextcloud/babel-config": "^1.0.0",
"@nextcloud/browserslist-config": "^2.3.0", "@nextcloud/browserslist-config": "^2.3.0",