From 00b0b6dc0fdb9f9454216bf9f764ec50284b490b Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 31 Oct 2019 00:03:05 +0000 Subject: [PATCH] Add code format check to GitHub CI --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b328a853e..4f665c7121 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,17 @@ name: CI -on: [push] +on: [push, pull_request] jobs: + check-code-formatting: + name: Check code formatting + runs-on: ubuntu-latest + container: + image: openrct2/openrct2:format + steps: + - uses: actions/checkout@v1 + - name: Run clang-format + run: scripts/run-clang-format.py -r src test --exclude src/openrct2/thirdparty build-appimage: - name: Build AppImage + name: Linux (x64, AppImage) runs-on: ubuntu-latest container: image: openrct2/openrct2:ubuntu_amd64