diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml new file mode 100644 index 000000000..9c7d6f95d --- /dev/null +++ b/.github/workflows/codestyle.yml @@ -0,0 +1,17 @@ +name: Code style + +on: [push, pull_request] + +jobs: + + codestyle: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - run: brew install clang-format + name: Install clang-format + - run: clang-format --version + - run: bash ./tools/format-code.sh + name: Run code formatter + - run: git diff --quiet HEAD + name: Check if the styling guide is followed diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dfbea9e08..bf1fa1337 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,18 +8,6 @@ on: jobs: - codestyle: - runs-on: macos-latest - steps: - - uses: actions/checkout@v2 - - run: brew install clang-format - name: Install clang-format - - run: clang-format --version - - run: bash ./tools/format-code.sh - name: Run code formatter - - run: git diff --quiet HEAD - name: Check if the styling guide is followed - amd64_linux_clang: runs-on: ubuntu-18.04 steps: