2022-04-15 11:34:01 +00:00
|
|
|
# This workflow is provided via the organization template repository
|
|
|
|
#
|
|
|
|
# https://github.com/nextcloud/.github
|
|
|
|
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
|
|
|
|
|
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
2023-01-16 16:10:56 +00:00
|
|
|
- main
|
2022-04-15 11:34:01 +00:00
|
|
|
- master
|
|
|
|
- stable*
|
|
|
|
|
2023-01-16 16:10:56 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: lint-info-xml-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-04-15 11:34:01 +00:00
|
|
|
jobs:
|
|
|
|
xml-linters:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
name: info.xml lint
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-16 16:10:56 +00:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
|
2022-04-15 11:34:01 +00:00
|
|
|
|
|
|
|
- name: Download schema
|
|
|
|
run: wget https://raw.githubusercontent.com/nextcloud/appstore/master/nextcloudappstore/api/v1/release/info.xsd
|
|
|
|
|
|
|
|
- name: Lint info.xml
|
2023-01-16 16:10:56 +00:00
|
|
|
uses: ChristophWurst/xmllint-action@d18a551aab4728e4af449617638600634d7a48cb # v1
|
2022-04-15 11:34:01 +00:00
|
|
|
with:
|
|
|
|
xml-file: ./appinfo/info.xml
|
|
|
|
xml-schema-file: ./info.xsd
|