Skip to content
Closed
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
56 changes: 56 additions & 0 deletions .github/workflows/ui-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: v3 comment UI review

# Temporary: renders the PR comment, review and step summary of cpp-linter-action v3
# (branch v3.0.0-rc0 + cpp-linter 2.0.0rc29 from TestPyPI) or of v2.24.2, on the same
# fixture (src/inventory.cpp), for screenshots. One PR per version. Do not merge.

on:
pull_request:
branches: [master]
paths: [src/**, .github/workflows/ui-review.yml]

permissions: {}

jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Which version
id: which
shell: bash
env:
HEAD: ${{ github.head_ref }}
run: |
if [[ "$HEAD" == *-v2 ]]; then echo "ref=v2.24.2" >> "$GITHUB_OUTPUT"; else echo "ref=v3.0.0-rc0" >> "$GITHUB_OUTPUT"; fi
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: cpp-linter/cpp-linter-action
ref: ${{ steps.which.outputs.ref }}
path: .action
persist-credentials: false
- name: Pin cpp-linter 2.0.0rc29 (v3 only)
if: steps.which.outputs.ref != 'v2.24.2'
run: cp .ui/rc29-pin/pyproject.toml .ui/rc29-pin/uv.lock .action/
- name: Generate compilation database
run: cmake -S src -B build > /dev/null
- name: cpp-linter
uses: ./.action
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
version: '21'
database: build
ignore: build|.github|.action|.ui
extra-args: -std=c++14 -Wall
thread-comments: update
tidy-review: true
format-review: true
step-summary: true
file-annotations: true
31 changes: 31 additions & 0 deletions .ui/rc29-pin/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[project]
name = "cpp-linter-action"
version = "0.0.0+private_virtual"
requires-python = ">=3.11"
dependencies = []

[dependency-groups]
action = [
"cpp-linter==2.0.0rc29",
]
dev = [
"mypy>=2.4.0",
"pre-commit>=4.6.2",
"ruff>=0.17.1",
]
docs = [
"markdown-gfm-admonition>=0.1.1",
"mkdocs>=1.6.1",
"mkdocs-gen-files>=0.6.1",
"mkdocs-include-markdown-plugin>=7.3.0",
"mkdocs-material>=9.7.7",
"pyyaml>=6.0.3",
]

[[tool.uv.index]]
name = "testPyPI"
url = "https://test.pypi.org/simple/"
explicit = true

[tool.uv.sources]
cpp-linter = { index = "testPyPI" }
Loading