Merge pull request #299 from glotzerlab/dependabot-github_actions-tru… #679
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: Style check | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
# Trigger on pull requests. | |
pull_request: | |
# Trigger on pushes to the mainline branches and version tags. This prevents building commits | |
# twice when the pull request source branch is in the same repository. | |
push: | |
branches: | |
- "trunk-patch" | |
- "trunk-minor" | |
- "trunk-major" | |
# Trigger on request. | |
workflow_dispatch: | |
jobs: | |
clang-tidy: | |
name: Run clang-tidy | |
runs-on: ubuntu-latest | |
container: | |
image: glotzerlab/ci:2023.10.09-clang14_py311 | |
steps: | |
- uses: actions/[email protected] | |
- name: Configure | |
run: cmake -B build | |
- name: Execute clang-tidy | |
run: clang-tidy -p=build gsd/*.c gsd/*.h scripts/*.cc --quiet --warnings-as-errors="*" | |
# This job is used to provide a single requirement for branch merge conditions. | |
checks_complete: | |
name: Style check | |
needs: [clang-tidy] | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "Done!" |