mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
33 lines
687 B
YAML
33 lines
687 B
YAML
---
|
|
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
merge_group:
|
|
|
|
concurrency:
|
|
group: lint-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Check formatting with Prettier
|
|
uses: Nerixyz/actionsx-prettier@v3-adj
|
|
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"
|