1
1
mirror of https://github.com/ariya/phantomjs.git synced 2024-09-11 12:55:33 +03:00
phantomjs/.github/workflows/codestyle.yml
Ariya Hidayat 6efc102c7e Use clang-format 6.0 to check for code style (#15403, #15404)
This way, the CI can run on the faster and more common Ubuntu machine.
2020-06-01 19:16:00 -07:00

19 lines
426 B
YAML

name: Code style
on: [push, pull_request]
jobs:
codestyle:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- run: sudo apt install -y clang-format-6.0
name: Install clang-format
- run: clang-format-6.0 --version
- run: bash ./tools/format-code.sh
name: Run code formatter
- run: git diff
- run: git diff --quiet HEAD
name: Check if the styling guide is followed