mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
b235637713
This allows the style checker to only look at the changes done in the current branch, and not the other commits that were done in the base branch.
28 lines
569 B
YAML
28 lines
569 B
YAML
name: Check style
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- master
|
|
- staging.tmp
|
|
- trying.tmp
|
|
- staging-squash-merge.tmp
|
|
pull_request:
|
|
|
|
jobs:
|
|
check-style:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Install clang-format
|
|
run: |
|
|
sudo apt-get update -y
|
|
sudo apt-get install clang-format -y
|
|
- name: Check style
|
|
run: |
|
|
clang-format -version
|
|
scripts/fix_style.py --dry-run --base origin/master
|
|
scripts/check_header_guards.py
|