ci: fix container builds for PRs and sets proper PX4 git tags #27457
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: Clang Tidy | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Testing (clang-tidy-quiet) | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: px4io/px4-dev-clang:2021-09-08 | |
options: -v ${{ github.workspace }}:/workspace | |
run: | | |
cd /workspace | |
git config --global --add safe.directory /workspace | |
make clang-tidy-quiet |