Skip to content

github workflow changes #2

github workflow changes

github workflow changes #2

name: clang_tidy_format
on:
pull_request: # This triggers the workflow for pull requests
branches:
- main # Run tests for pull requests targeting the "main" branch
paths:
- 'src/**'
- 'testing/**'
- 'vmsdk/src/**'
- 'vmsdk/testing/**'
push:
branches:

Check failure on line 13 in .github/workflows/clang_tidy_format.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/clang_tidy_format.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
- main # Optional: Run tests for direct pushes to "main"
paths:
- 'src/**'
- 'testing/**'
- 'vmsdk/src/**'
- 'vmsdk/testing/**'
workflow_dispatch: # allow manual triggering
concurrency:
group: codeql-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
bazel-tests:
runs-on: ubuntu-latest
steps:
# Checkout the code from the repository
- name: Checkout Code
uses: actions/checkout@v3
# Set up Docker to build and run the container
- name: Set up Docker
uses: docker/setup-buildx-action@v2
# Build the Docker image from the Dockerfile in your repo
- name: Build Docker Image
run: docker build -t presubmit-image -f .devcontainer/Dockerfile .
- name: Run clang-tidy/format
run: docker run --rm -v "$(pwd):/workspace" --user "$(id -u):$(id -g)" presubmit-image ci/check_changes.sh origin/main...HEAD