Browse Source

Run both checks on the same instance

This should save some time since we only have to boot up the environment once
pull/3150/head
Anders Jenbo 4 years ago
parent
commit
db53bf1624
  1. 23
      .github/workflows/clang-format-check.yml

23
.github/workflows/clang-format-check.yml

@ -9,18 +9,23 @@ on:
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- 'Source'
- 'test'
steps:
- uses: actions/checkout@v2
- name: Run clang-format style check for C/C++ programs.
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Formatting Check (Source)
uses: jidicula/clang-format-action@v3.4.0
with:
clang-format-version: '11'
check-path: 'Source'
fallback-style: 'webkit'
- name: Formatting Check (test)
uses: jidicula/clang-format-action@v3.4.0
with:
clang-format-version: '11'
check-path: ${{ matrix.path }}
check-path: 'test'
fallback-style: 'webkit'

Loading…
Cancel
Save