diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-07-09 19:43:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 19:43:04 +0200 |
commit | c0b31562f51606fc1b1c662e99dffde1044a9583 (patch) | |
tree | 3157fbaec9bb148c64cb4fd3fa40bad6e8ad3864 /.github/workflows | |
parent | eeabf0a8446c41ce8b11c063ede07337ba7eabbb (diff) | |
parent | 69f92fa26c7bef3b042d8da5e520fe60b22e01b7 (diff) | |
download | fork-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.yml | 27 |
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: |