diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:32:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:32:49 +0000 |
commit | 8053187731ae8e3eb368d8360989cf5fd6eed9f7 (patch) | |
tree | 32bada84ff5d7460cdf3934fcbdbe770d6afe4cd /.github/workflows/lint.yml | |
parent | Initial commit. (diff) | |
download | rnp-8053187731ae8e3eb368d8360989cf5fd6eed9f7.tar.xz rnp-8053187731ae8e3eb368d8360989cf5fd6eed9f7.zip |
Adding upstream version 0.17.0.upstream/0.17.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r-- | .github/workflows/lint.yml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..d6220ee --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,61 @@ +name: lint + +on: + push: + branches: + - main + pull_request: + paths-ignore: + - '/.*' + - '/_*' + - '!.clang-format' + - 'Brewfile' + - 'docs/**' + - '**.adoc' + - '**.md' + - '**.nix' + - 'flake.lock' + +jobs: + clang-format: + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, 'skip ci')" + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + submodules: true + - uses: DoozyX/clang-format-lint-action@v0.15 + with: + clangFormatVersion: 11.0.0 + shellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + submodules: true + - uses: ludeeus/action-shellcheck@master + with: + scandir: './ci' + env: + SHELLCHECK_OPTS: -x + version-cmake-up-to-date: + runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, 'skip ci')" + timeout-minutes: 10 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + path: rnp + - name: Download latest version.cmake + uses: actions/checkout@v3 + with: + repository: rnpgp/cmake-versioning + fetch-depth: 1 + path: cmake-versioning + - name: Compare + run: | + set -x + diff "rnp/cmake/version.cmake" "cmake-versioning/version.cmake" |