mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
a0ae1651eb
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
34 lines
713 B
YAML
34 lines
713 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: actionsx/prettier@3d9f7c3fa44c9cb819e68292a328d7f4384be206
|
|
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"
|