mirror-chatterino2/.github/workflows/lint.yml

34 lines
713 B
YAML
Raw Normal View History

2021-02-21 14:45:42 +01:00
---
name: Lint
on:
push:
branches:
- master
pull_request:
merge_group:
2021-02-21 14:45:42 +01:00
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
2021-02-21 14:45:42 +01:00
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2021-02-21 14:45:42 +01:00
- name: Check formatting with Prettier
uses: actionsx/prettier@3d9f7c3fa44c9cb819e68292a328d7f4384be206
2021-02-21 14:45:42 +01:00
with:
# prettier CLI arguments.
args: --write .
- name: Show diff
run: git --no-pager diff --exit-code --color=never
shell: bash
- name: Check Theme files
run: |
npm i ajv-cli
npx -- ajv validate -s docs/ChatterinoTheme.schema.json -d "resources/themes/*.json"