Skip to content

Commit d4260ca

Browse files
authored
Merge pull request #22 from LibreCodeCoop/feat/reusable-lint-info-xml
feat: centralize info.xml lint workflow
2 parents 10e9552 + a870258 commit d4260ca

4 files changed

Lines changed: 63 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors
2+
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
3+
# SPDX-License-Identifier: MIT
4+
5+
name: Lint info.xml
6+
7+
on:
8+
workflow_call:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
xml-linters:
15+
name: info.xml lint
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
20+
with:
21+
persist-credentials: false
22+
sparse-checkout: |
23+
appinfo/
24+
25+
- name: Download schema
26+
run: >-
27+
wget
28+
https://raw.githubusercontent.com/nextcloud/appstore/c8fe8dcb388d2ed7b566e982fd64aa38463ba80a/nextcloudappstore/api/v1/release/info.xsd
29+
30+
- name: Lint info.xml
31+
uses: ChristophWurst/xmllint-action@36f2a302f84f8c83fceea0b9c59e1eb4a616d3c1 # v1.2
32+
with:
33+
xml-file: ./appinfo/info.xml
34+
xml-schema-file: ./info.xsd
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "Lint info.xml",
3+
"description": "Validate a Nextcloud app's appinfo/info.xml against the App Store schema.",
4+
"iconName": "octicon codescan",
5+
"categories": [
6+
"XML"
7+
],
8+
"filePatterns": [
9+
"^appinfo/info.xml$"
10+
]
11+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
2+
SPDX-License-Identifier: AGPL-3.0-or-later
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
# This workflow is published through the LibreCode organization catalog.
5+
# Implementation: LibreCodeCoop/github-workflows
6+
7+
name: Lint info.xml
8+
9+
on: pull_request
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
lint-info-xml:
16+
uses: LibreCodeCoop/github-workflows/.github/workflows/lint-info-xml.yml@c5f578281fa7d270b839866ebc07047287ff50d8

0 commit comments

Comments
 (0)