-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (45 loc) · 1.1 KB
/
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
47
name: build-workflow
on:
pull_request:
push:
branches:
- main
- develop
paths-ignore:
- 'doc/**'
- '**.md'
- 'THANKS'
- 'LICENSE'
- 'NOTICE'
jobs:
lint:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04_x86_64
name: Lint cpp-mp4 for ${{ matrix.os }}
runs-on: ubuntu-20.04
steps:
- name: Install packages
shell: bash
run: |
go install github.com/client9/misspell/cmd/misspell@latest
sudo apt update
sudo apt install -yq shellcheck
sudo rm -rf /var/lib/apt/lists/*
pip3 install --user cpplint
env:
DEBIAN_FRONTEND: noninteractive
- uses: actions/checkout@v4
- name: Lint cpp-mp4
run: PATH=$PATH:~/.local/bin:~/go/bin ./lint.bash
timeout-minutes: 120
- name: Slack Notification
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: hisui
SLACK_COLOR: danger
SLACK_TITLE: Failure lint
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}