Skip to content

qmllint-action

Actions
Validates QML and JavaScript files
v3
Latest
Star (4)

qmllint-action

Verify if QML and JavaScript files are valid.

Usage

To use this action, create a .github/workflows/lint.yml in your repository containing:

name: Lint

on:
  push:
    branches:
      - develop
  pull_request:
    types:
      - assigned
      - opened
      - synchronize
      - reopened

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Validate QML and JavaScript files
        uses: liri-infra/qmllint-action@master
        env:
            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Test

Test it from command line like this:

GITHUB_TOKEN=token
GITHUB_WORKSPACE=/path/to/project
GITHUB_REPOSITORY=owner/repo
GITHUB_SHA=abcdef...
./entrypoint

Replace GITHUB_TOKEN, GITHUB_WORKSPACE, GITHUB_REPOSITORY, GITHUB_SHA appropriately.

qmllint-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Validates QML and JavaScript files
v3
Latest

qmllint-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.