From 263b6215d5457d5202b3ce7432d40b16aba9f8a1 Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Thu, 28 Mar 2024 15:03:47 +0000 Subject: [PATCH] CI: lint GH Actions 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 https://github.com/avahi/avahi/issues/540 --- .github/workflows/build.yml | 2 +- .github/workflows/linter.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ed66929df..83fd81910 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 000000000..ac1909864 --- /dev/null +++ b/.github/workflows/linter.yml @@ -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