forked from firebase/firebase-cpp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 822 Bytes
/
lint.yml
File metadata and controls
33 lines (30 loc) · 822 Bytes
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
name: Lint
on:
pull_request:
types: [opened,synchronize]
jobs:
lint_warnings_check_and_comment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: cpplint/cpplint
ref: "1.5.5"
path: cpplint
- uses: actions/checkout@v2
with:
submodules: false
path: firebase
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.7
- 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