Move the clang-format CI job from CircleCI to GitHub actions. #1
Workflow file for this run
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: ASan tests | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
container: | |
image: openquantumsafe/ci-ubuntu-jammy:latest | |
steps: | |
- name: Install dependencies | |
run: apt-get update && apt-get install -y clang-format | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Check coding style using clang-format | |
run: find . -type f -and '(' -name '*.h' -or -name '*.c' -or -name '*.inc' ')' | xargs clang-format --dry-run --Werror |