summaryrefslogtreecommitdiffstats
path: root/third_party/jpeg-xl/.github/workflows/pull_request.yml
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/jpeg-xl/.github/workflows/pull_request.yml')
-rw-r--r--third_party/jpeg-xl/.github/workflows/pull_request.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/third_party/jpeg-xl/.github/workflows/pull_request.yml b/third_party/jpeg-xl/.github/workflows/pull_request.yml
new file mode 100644
index 0000000000..b1214e1061
--- /dev/null
+++ b/third_party/jpeg-xl/.github/workflows/pull_request.yml
@@ -0,0 +1,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