2019-11-02 11:59:34 +01:00
|
|
|
name: Check formatting
|
|
|
|
|
2020-07-18 14:27:06 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- '*.md'
|
|
|
|
pull_request:
|
2019-11-02 11:59:34 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2019-11-02 12:18:18 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: ubuntu:19.10
|
2019-11-02 11:59:34 +01:00
|
|
|
|
|
|
|
steps:
|
2019-11-02 12:21:18 +01:00
|
|
|
- uses: actions/checkout@v1
|
2019-11-02 12:13:41 +01:00
|
|
|
- name: apt-get update
|
|
|
|
run: apt-get update
|
|
|
|
|
|
|
|
- name: Install clang-format
|
2019-11-02 12:19:25 +01:00
|
|
|
run: apt-get -y install clang-format
|
2019-11-02 11:59:34 +01:00
|
|
|
|
|
|
|
- name: Check formatting
|
|
|
|
run: ./tools/check-format.sh
|