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