/xcop-action

Xcop GitHub action

Primary LanguageDockerfileMIT LicenseMIT

xcop-action

Xcop GitHub action

XCOP XML linter as GitHub action.

Usage

Add g4s8/xcop-action@master (or use version tag instead of master) after actions/checkout@v2 action.

---
name: XCOP linter
"on":
  push:
    branches:
      - master
  pull_request:
    brranches:
      - master
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: g4s8/xcop-action@master

To customize it use license or files inputs:

  • license - location of license file (default LICENSE.txt)
  • files - glob location of all files to be checked separated by \n (default globs are: **/*.xml, **/*.xsl, **/*.xsd, **/*.xhtml )
- uses: g4s8/xcop-action@master
  with:
    license: MY_LICENSE.txt
    files: |
      **/*.xml
      **/*.xsl
      **/*.ext