-
Notifications
You must be signed in to change notification settings - Fork 117
41 lines (37 loc) · 1.04 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
name: Lint
on:
pull_request:
types: [opened,synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint_warnings_check_and_comment:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
repository: cpplint/cpplint
ref: "1.5.5"
path: cpplint
- uses: actions/checkout@v3
with:
submodules: false
path: firebase
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install prerequisites
run: |
cd firebase
python scripts/gha/install_prereqs_desktop.py
- name: Install prerequisites
run: |
python3 -m pip install unidiff
- name: Run cpplint
shell: bash
run: |
set -e
cd firebase
python3 scripts/gha/lint_commenter.py -l ../cpplint/cpplint.py -p ${{ github.event.pull_request.number }} -t ${{ github.token }} -A