Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on: # yamllint disable-line rule:truthy
branches: ["main"]
workflow_dispatch:

permissions:
contents: read

jobs:
lint:
name: clang-format style check
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ on: # yamllint disable-line rule:truthy
# * * * * *
- cron: "16 20 * * 0"

permissions:
contents: read

jobs:
analyze:
name: Analyze (${{ matrix.language }})
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cpp-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on: # yamllint disable-line rule:truthy
branches: ["main"]
workflow_dispatch:

permissions:
contents: read

jobs:
coverage:
name: C/C++ CMake CI Coverage
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cpp-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on: # yamllint disable-line rule:truthy
env:
VCPKG_VERSION: 2026.07.29

permissions:
contents: read

jobs:
test:
name: C/C++ CMake CI Test
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cpp-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on: # yamllint disable-line rule:truthy
env:
VCPKG_VERSION: 2026.07.29

permissions:
contents: read

jobs:
test:
name: C/C++ CMake CI Test
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cpp-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on: # yamllint disable-line rule:truthy
branches: ["main"]
workflow_dispatch:

permissions:
contents: read

jobs:
test:
name: C/C++ CMake CI Test
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: CppCheck Lint

on: # yamllint disable-line rule:truthy
Expand All @@ -10,6 +9,9 @@ on: # yamllint disable-line rule:truthy
branches: ["main"]
workflow_dispatch:

permissions:
contents: read

jobs:
lint:
name: CppCheck Lint
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ env:
IMAGE_NAME: algorithm-exercises-cpp
ARTIFACT_NAME: algorithm-exercises-cpp_${{ github.sha }}

permissions:
contents: read

jobs:
setup:
name: "Setup matrix"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: gitleaks

on: # yamllint disable-line rule:truthy
Expand All @@ -17,6 +16,10 @@ on: # yamllint disable-line rule:truthy
# │ │ │ │ │
# * * * * *
- cron: "0 6 * * *" # run once a day at 6 AM

permissions:
contents: read

jobs:
scan:
name: gitleaks
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/make-coverage-html.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on: # yamllint disable-line rule:truthy
branches: ["main"]
workflow_dispatch:

permissions:
contents: read

jobs:
make-coverage-html:
name: "Run make coverage/html and verify coverage HTML"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/prettier-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on: # yamllint disable-line rule:truthy
branches: ["main"]
workflow_dispatch:

permissions:
contents: read

jobs:
json-lint:
name: "Prettier JSON Lint"
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on: # yamllint disable-line rule:truthy
types: [opened, synchronize, reopened]
workflow_dispatch:

permissions:
contents: read

jobs:
build:
name: SonarCloud build and run sonar-scanner
Expand All @@ -22,17 +25,9 @@ jobs:
fetch-depth: 0
- name: Install Tools
run: |
sudo apt-get install lcov
sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED
pip install gcovr
#
# Install lcov dependencies
sudo apt-get install libcapture-tiny-perl libdatetime-perl
# Install lcov from source
git clone https://github.com/linux-test-project/lcov.git
cd lcov
git checkout v2.3.2
sudo make install
cd ..
pip install --only-binary :all: gcovr==8.6

- name: Check Tools
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on: # yamllint disable-line rule:truthy
branches: ["main"]
workflow_dispatch:

permissions:
contents: read

jobs:
lint:
name: YAML lint
Expand Down
Loading