mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
CI: Check style on pull requests
This commit is contained in:
parent
df46ff8557
commit
0a2eab6a10
26
.github/workflows/style.yml
vendored
Normal file
26
.github/workflows/style.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
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
|
||||
python3 scripts/fix_style.py --dry-run --base "$(git merge-base origin/master $GITHUB_SHA)"
|
Loading…
Reference in a new issue