https://github.com/liri-infra/qmllint-action
:heavy_plus_sign: Validates QML and JavaScript files
https://github.com/liri-infra/qmllint-action
actions github javascript lint qml qml-files
Last synced: 10 months ago
JSON representation
:heavy_plus_sign: Validates QML and JavaScript files
- Host: GitHub
- URL: https://github.com/liri-infra/qmllint-action
- Owner: liri-infra
- License: other
- Created: 2020-04-25T09:57:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-24T17:54:27.000Z (over 2 years ago)
- Last Synced: 2024-04-24T13:54:47.451Z (about 2 years ago)
- Topics: actions, github, javascript, lint, qml, qml-files
- Language: Python
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```yaml
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:
```sh
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.