mirror of
https://github.com/transmission/transmission.git
synced 2026-04-19 16:31:13 +01:00
build: use GitHub actions to check code-style (#3138)
This commit is contained in:
22
.github/workflows/code-style.yml
vendored
Normal file
22
.github/workflows/code-style.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Code Style
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
formatting-check:
|
||||
name: Formatting Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get install clang-format-12 npm yarn
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Check
|
||||
working-directory: .
|
||||
run: |
|
||||
./code_style.sh --check
|
||||
Reference in New Issue
Block a user