Skip to content

test workflow?

test workflow? #3

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: |
"macos-latest" == matrix.os
run: |
brew update
brew install llvm
- name: "Linux: install clang/llvm"
if: |

Check failure on line 55 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: 55, Col: 13): Unexpected symbol: '"ubuntu-latest"'. Located at position 1 within expression: "ubuntu-latest" == matrix.os
${{ "ubuntu-latest" == matrix.os }}
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