Skip to content

Commit 677d124

Browse files
committed
ci: add linter
1 parent c3bac6f commit 677d124

3 files changed

Lines changed: 68 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
name: Lint
3+
4+
on:
5+
push:
6+
pull_request:
7+
8+
jobs:
9+
shellcheck:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Check
16+
run: shellcheck .env build-* fetch
17+
18+
yamllint:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Check
25+
run: yamllint --strict .
26+
27+
editorconfig:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
33+
- name: Install
34+
uses: editorconfig-checker/action-editorconfig-checker@main
35+
36+
- name: Check
37+
run: editorconfig-checker
38+
39+
actionlint:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout
43+
uses: actions/checkout@v4
44+
45+
- name: Check
46+
uses: raven-actions/actionlint@v2
47+
48+
prettier:
49+
runs-on: ubuntu-latest
50+
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v4
54+
55+
- name: Setup Node
56+
uses: actions/setup-node@v4
57+
58+
- name: Install
59+
run: npm install prettier@next
60+
61+
- name: Check
62+
run: npx prettier --check .

.yamllint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
truthy: disable

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# mpv-build-macOS
22

33
[![Build & Upload Artifact](https://github.com/m154k1/mpv-build-macOS/actions/workflows/build.yml/badge.svg)](https://github.com/m154k1/mpv-build-macOS/actions/workflows/build.yml)
4+
[![Lint](https://github.com/m154k1/mpv-build-macOS/actions/workflows/lint.yml/badge.svg)](https://github.com/m154k1/mpv-build-macOS/actions/workflows/lint.yml)
45

56
A set of scripts that help build [mpv](https://mpv.io) on macOS.
67

0 commit comments

Comments
 (0)