-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (43 loc) · 1012 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
name: Lint CI
"on":
push:
branches:
- master
paths:
- 'Makefile'
- 'bin/**'
pull_request:
branches:
- master
paths:
- 'Makefile'
- 'bin/**'
permissions:
contents: read
jobs:
lint:
name: Shell check
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install deps
run: |
sudo apt update
sudo apt install socat mpv rofi
python -m pip install yt-dlp
- name: Setup some envs
run: |
echo "HOME=$HOME" >> "$GITHUB_ENV"
echo "PATH=$PATH:$HOME/.local/bin" >> "$GITHUB_ENV"
- name: Shellcheck scripts
run: |
shellcheck -s bash bin/mpvctl
shellcheck -s bash bin/ytdl-mpv
- name: Make install
run: make install
- name: Run mpvctl help
run: mpvctl --help
- name: Run ytdl-mpv help
run: ytdl-mpv --help