Use std::equal instead of string_view == in begins_with. (#474) #613
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and format | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- name: Install clang-format | |
run: | | |
sudo apt update && sudo apt install clang-format-15 -y | |
sudo ln -sf /usr/bin/clang-format-15 /usr/bin/clang-format | |
- name: Build with Lint and Format Check | |
run: | | |
cmake -B build && cmake --build build | |
env: | |
CXX: clang++-14 | |
LINT_AND_FORMAT_CHECK: true | |
- uses: chartboost/ruff-action@e18ae971ccee1b2d7bbef113930f00c670b78da4 # v1.0.0 | |
name: Lint with Ruff | |
with: | |
version: 0.0.263 |