summaryrefslogtreecommitdiffstats
path: root/third_party/jpeg-xl/.github/workflows/pull_request.yml
blob: b1214e106190079f535d14c71375cdf765df8519 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright (c) the JPEG XL Project Authors. All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

# Workflow to run pull-requests specific checks.

name: PR
on:
  pull_request:
    types: [opened, reopened, synchronize]

jobs:
  # Checks that the AUTHORS files is updated with new contributors.
  authors:
    runs-on: [ubuntu-latest]
    steps:
    - name: Checkout the source
      uses: actions/checkout@v2
    - name: Check AUTHORS file
      run:
        ./ci.sh authors

  format:
    runs-on: [ubuntu-latest]
    steps:
    - name: Install build deps
      run: |
        sudo apt update
        sudo apt install -y \
          clang-format \
          clang-format-7 \
          clang-format-8 \
          clang-format-9 \
          clang-format-10 \
          clang-format-11 \
        #
    - name: Checkout the source
      uses: actions/checkout@v2
    - name: clang-format
      run:
        ./ci.sh lint >&2