Skip to content

Move the clang-format CI job from CircleCI to GitHub actions. #1

Move the clang-format CI job from CircleCI to GitHub actions.

Move the clang-format CI job from CircleCI to GitHub actions. #1

Workflow file for this run

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