mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-18 11:10:04 +00:00
30 lines
599 B
YAML
30 lines
599 B
YAML
name: clang-format-lint
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [master, nightly]
|
|
types: [opened, synchronize, edited, reopened]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Clang format lint
|
|
uses: DoozyX/clang-format-lint-action@v0.13
|
|
with:
|
|
source: './sunshine'
|
|
extensions: 'cpp,h'
|
|
clangFormatVersion: 13
|
|
style: file
|
|
inplace: True
|
|
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: clang-formatted-files
|
|
path: sunshine/
|