Skip to content

Create standalone version of Get PR Comments script for use in other repos, with added features. #4932

Create standalone version of Get PR Comments script for use in other repos, with added features.

Create standalone version of Get PR Comments script for use in other repos, with added features. #4932

Workflow file for this run

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-22.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.8
- 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