From b37db3e051ec25aa05840726d094d76e1ddf7309 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Thu, 9 Apr 2020 18:08:57 +0100 Subject: [PATCH] github actions: update coding style checks Signed-off-by: Yuxuan Shui --- .github/workflows/coding-style-pr.yml | 13 +++++++++++++ .github/workflows/coding-style.yml | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/coding-style-pr.yml diff --git a/.github/workflows/coding-style-pr.yml b/.github/workflows/coding-style-pr.yml new file mode 100644 index 0000000..e75d1ae --- /dev/null +++ b/.github/workflows/coding-style-pr.yml @@ -0,0 +1,13 @@ +name: coding-style +on: pull_request + +jobs: + check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - run: git fetch --depth=1 origin ${{ github.event.pull_request.base.sha }} + - uses: yshui/git-clang-format-lint@v1.9 + with: + base: ${{ github.event.pull_request.base.sha }} diff --git a/.github/workflows/coding-style.yml b/.github/workflows/coding-style.yml index a482113..ccb65bd 100644 --- a/.github/workflows/coding-style.yml +++ b/.github/workflows/coding-style.yml @@ -1,14 +1,14 @@ -name: code-style +name: coding-style on: push jobs: - build: + check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 2 - - uses: yshui/git-clang-format-lint@v1.7 + - uses: yshui/git-clang-format-lint@v1.9 with: base: ${{ github.event.ref }}~1