mirror of
https://github.com/javalsai/lidm.git
synced 2026-05-28 18:17:17 +02:00
141b84fb42
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
name: Check
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
spellcheck:
|
|
name: Grammar
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: awalsh128/cache-apt-pkgs-action@latest
|
|
with:
|
|
packages: "codespell"
|
|
version: 1.0
|
|
- run: codespell
|
|
|
|
shellcheck:
|
|
name: Shellcheck
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: awalsh128/cache-apt-pkgs-action@latest
|
|
with:
|
|
packages: "shellcheck"
|
|
version: 1.0
|
|
- run: git ls-files "*.sh" "*/PKGBUILD" | xargs shellcheck --shell=bash
|
|
|
|
clangcheck:
|
|
name: Clang
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ubuntu:25.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- run: apt -y update && apt install -y clang-format clang-tidy make gcc git bear libpam0g-dev
|
|
|
|
- run: bear -- make
|
|
- run: clang-format -version && clang-format -dump-config
|
|
- run: |
|
|
set -euo pipefail
|
|
clang-format -ni src/*.c include/*.h -Werror 2>&1 | \
|
|
sed -E 's/^([^ ]+\.[ch]):([0-9]+):([0-9]+): ([a-z]+): (.*)$/::\4 file=\1,line=\2,col=\3::\5/'
|
|
- run: clang-tidy -version && clang-tidy -dump-config
|
|
- run: |
|
|
set -euo pipefail
|
|
clang-tidy -p . src/*.c include/*.h -warnings-as-errors=\* 2>&1 1>/dev/null |
|
|
sed -E 's/^([^ ]+\.[ch]):([0-9]+):([0-9]+): ([a-z]+): (.*)$/::\4 file=\1,line=\2,col=\3::\5/'
|