Skip to content

workflows/lint: add clang-format on changed files #441

workflows/lint: add clang-format on changed files

workflows/lint: add clang-format on changed files #441

Workflow file for this run

name: lint
on:
push:
branches:
- master
- ci
- 'release/**'
pull_request:
branches: [master]
jobs:
commit-msg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: Lint
run: |
./ci/lint-commit-msg.py
swift-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: norio-nomura/[email protected]
lua-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: lunarmodules/luacheck@v1
python-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
clang-format-lint:
runs-on: ubuntu-latest
# container:
# image: "registry.opensuse.org/home/mia/images/images/mpv-ci:stable-deps"
steps:
- run: |
sudo apt-get update
sudo apt-get install -y clang-format
- uses: actions/checkout@v4
- run: git clang-format $GITHUB_REF --diff