summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-09 19:43:04 +0200
committerGitHub <noreply@github.com>2021-07-09 19:43:04 +0200
commitc0b31562f51606fc1b1c662e99dffde1044a9583 (patch)
tree3157fbaec9bb148c64cb4fd3fa40bad6e8ad3864 /.github/workflows
parenteeabf0a8446c41ce8b11c063ede07337ba7eabbb (diff)
parent69f92fa26c7bef3b042d8da5e520fe60b22e01b7 (diff)
downloadfork-godot-webrtc-native-c0b31562f51606fc1b1c662e99dffde1044a9583.tar.gz
fork-godot-webrtc-native-c0b31562f51606fc1b1c662e99dffde1044a9583.tar.bz2
fork-godot-webrtc-native-c0b31562f51606fc1b1c662e99dffde1044a9583.zip
Merge pull request #39 from Faless/style/clang_black
Add static checks
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_release.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml
index 0205afa..19a59c9 100644
--- a/.github/workflows/build_release.yml
+++ b/.github/workflows/build_release.yml
@@ -2,9 +2,36 @@ name: 🔧 Build -> Package 📦
on: [push, pull_request]
jobs:
+ static-checks:
+ name: 📊 Static Checks (clang-format, black format, file format)
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Install dependencies
+ run: |
+ sudo apt-get install -qq dos2unix recode clang-format-11
+ sudo update-alternatives --remove-all clang-format
+ sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-11 100
+ sudo pip3 install black==20.8b1 pygments
+
+ - name: File formatting checks (file_format.sh)
+ run: |
+ bash ./misc/scripts/file_format.sh
+
+ - name: Style checks via clang-format (clang_format.sh)
+ run: |
+ bash ./misc/scripts/clang_format.sh
+
+ - name: Python style checks via black (black_format.sh)
+ run: |
+ bash ./misc/scripts/black_format.sh
+
build:
runs-on: ${{ matrix.os }}
name: 🔧 Build
+ needs: static-checks
strategy:
matrix:
include: