From 08d49a7c199573c416e8ef2a787dde7a13ba6cde Mon Sep 17 00:00:00 2001 From: Ariya Hidayat Date: Sun, 24 May 2020 21:55:01 -0700 Subject: [PATCH] GitHub Actions: split the workflows (#15403) --- .github/workflows/codestyle.yml | 17 +++++++++++++++++ .github/workflows/tests.yml | 12 ------------ 2 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/codestyle.yml diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml new file mode 100644 index 0000000000..9c7d6f95d9 --- /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 dfbea9e089..bf1fa13378 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: