Skip to content

Commit

Permalink
CI: lint GH Actions
Browse files Browse the repository at this point in the history
with https://github.com/rhysd/actionlint?tab=readme-ov-file#actionlint
to make it easier to add/change/review GH Actions.

Mostly in preparation for an action sending data to Coverity Scan.

Related to avahi#540
  • Loading branch information
evverx committed Mar 28, 2024
1 parent d6986bc commit 263b621
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
env:
- { CC: "gcc", DISTCHECK: "true", VALGRIND: "true" }
- { CC: "gcc", ASAN_UBSAN: "true" }
- { CC: "clang" }
- { CC: "clang", ASAN_UBSAN: "false" }
- { CC: "clang", ASAN_UBSAN: "true" }
env: ${{ matrix.env }}
steps:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Super-Linter

on:
pull_request:
branches:
- master

permissions:
contents: read

jobs:
build:
name: Lint GH Actions
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

steps:
- name: Repo checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Lint
uses: super-linter/super-linter/slim@v6.3.0
env:
MULTI_STATUS: false
VALIDATE_ALL_CODEBASE: false
VALIDATE_GITHUB_ACTIONS: true

0 comments on commit 263b621

Please sign in to comment.