From 3c7d0c8be855ba3130279a9775b50149ec1e11c6 Mon Sep 17 00:00:00 2001 From: dtor Date: Sat, 14 Dec 2024 05:22:44 +0000 Subject: [PATCH] ci: run llvm-cov action on docker image and improve formatting --- .github/workflows/check_pr_description.yml | 6 +++++- .github/workflows/clang_format.yml | 1 + .github/workflows/gitlint.yml | 1 + .github/workflows/llvm_cov.yml | 14 ++++++-------- .github/workflows/yamllint.yml | 5 ++++- 5 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/check_pr_description.yml b/.github/workflows/check_pr_description.yml index cfa5207e..7a4552b9 100644 --- a/.github/workflows/check_pr_description.yml +++ b/.github/workflows/check_pr_description.yml @@ -4,12 +4,15 @@ name: PR description on: # yamllint disable-line rule:truthy pull_request: types: [opened, edited, synchronize] + jobs: check-description: runs-on: ubuntu-latest + steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 + - name: Check PR description for issue link id: contains_issue run: | @@ -25,6 +28,7 @@ jobs: else echo "PR description contains a valid issue link." fi + - name: Fail PR if no issue link found if: failure() run: |- diff --git a/.github/workflows/clang_format.yml b/.github/workflows/clang_format.yml index ff070acb..2be5ce43 100644 --- a/.github/workflows/clang_format.yml +++ b/.github/workflows/clang_format.yml @@ -4,6 +4,7 @@ name: Clang-Format on: # yamllint disable-line rule:truthy pull_request: branches: ['*'] + jobs: clang-format: runs-on: ubuntu-latest diff --git a/.github/workflows/gitlint.yml b/.github/workflows/gitlint.yml index 691038ea..e9efcd92 100644 --- a/.github/workflows/gitlint.yml +++ b/.github/workflows/gitlint.yml @@ -3,6 +3,7 @@ name: GitLint on: # yamllint disable-line rule:truthy pull_request: branches: ['*'] + jobs: gitlint: runs-on: ubuntu-latest diff --git a/.github/workflows/llvm_cov.yml b/.github/workflows/llvm_cov.yml index ebbf0521..7334d6de 100644 --- a/.github/workflows/llvm_cov.yml +++ b/.github/workflows/llvm_cov.yml @@ -7,14 +7,12 @@ on: # yamllint disable-line rule:truthy jobs: coverage: runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v3 + container: + image: dtors/base-cpp:latest - - name: Install LLVM - run: | - sudo apt update - sudo apt install -y llvm + steps: + - name: Checkout code + uses: actions/checkout@v4 - name: Run Coverage Script - run: bazel run //tools/coverage:llvm_cov -- -t //examples/cpp:test -s + run: bazelisk run //tools/coverage:llvm_cov -- -t //examples/cpp:test -s diff --git a/.github/workflows/yamllint.yml b/.github/workflows/yamllint.yml index d1490057..0679bf3d 100644 --- a/.github/workflows/yamllint.yml +++ b/.github/workflows/yamllint.yml @@ -8,9 +8,12 @@ on: # yamllint disable-line rule:truthy jobs: yamllint: runs-on: ubuntu-latest + container: + image: dtors/base-cpp:latest + steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Find affected files run: |