mirror of
https://github.com/ariya/phantomjs.git
synced 2024-09-11 12:55:33 +03:00
6efc102c7e
This way, the CI can run on the faster and more common Ubuntu machine.
19 lines
426 B
YAML
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
|