Skip to content

hmm

hmm #5

Workflow file for this run

name: "lint"
on:
push:
pull_request:
workflow_call:
permissions:
contents: "read"
jobs:
go-lint:
strategy:
matrix:
go: ["1.23"]
os: ["ubuntu-latest", "macos-latest"]
runs-on: "${{ matrix.os }}"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Setup Go"
uses: "actions/setup-go@v5"
with:
go-version: "${{ matrix.go }}"
- name: "Lint go code"
uses: "golangci/golangci-lint-action@v6"
with:
version: "v1.59"
cpp-lint:
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
runs-on: "${{ matrix.os }}"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
submodules: "recursive"
- name: "Setup Go"
uses: "actions/setup-go@v5"
with:
go-version: "${{ matrix.go }}"
- name: "Macos: install clang/llvm"
if: |

Check failure on line 48 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / lint

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yml (Line: 48, Col: 13): Unexpected symbol: '"macos-latest"'. Located at position 14 within expression: matrix.os == "macos-latest" .github/workflows/lint.yml (Line: 55, Col: 13): Unexpected symbol: '"ubuntu-latest"'. Located at position 14 within expression: matrix.os == "ubuntu-latest"
matrix.os == "macos-latest"
run: |
brew update
brew install llvm
- name: "Linux: install clang/llvm"
if: |
matrix.os == "ubuntu-latest"
run: |
curl --proto "=https" --tlsv1.2 -sSf https://apt.llvm.org/llvm.sh | bash -s -- 16 all
- name: "Clang format"
run: |
find cpp/src -type f | xargs clang-format-16 -i
- name: "Clang tidy"
run: |
find cpp/src -type f | xargs clang-tidy-16