Skip to content

Commit

Permalink
ci: run llvm-cov action on docker image and improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
danctorres committed Dec 14, 2024
1 parent dfca3fb commit 3c7d0c8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/check_pr_description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |-
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/clang_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ name: Clang-Format
on: # yamllint disable-line rule:truthy
pull_request:
branches: ['*']

jobs:
clang-format:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: GitLint
on: # yamllint disable-line rule:truthy
pull_request:
branches: ['*']

jobs:
gitlint:
runs-on: ubuntu-latest
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/llvm_cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 3c7d0c8

Please sign in to comment.