diff --git a/.gitea/workflows/repod.yml b/.gitea/workflows/repod.yml index a7995ed..62ff0b0 100644 --- a/.gitea/workflows/repod.yml +++ b/.gitea/workflows/repod.yml @@ -2,6 +2,16 @@ 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 @@ -34,6 +44,15 @@ jobs: 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 diff --git a/package.json b/package.json index 50c9fe5..7c545d0 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,10 @@ "browserslist": [ "extends @nextcloud/browserslist-config" ], + "engines": { + "node": "^16.0.0", + "npm": "^7.0.0 || ^8.0.0" + }, "devDependencies": { "@nextcloud/babel-config": "^1.0.0", "@nextcloud/browserslist-config": "^2.3.0",