Skip to content

Commit e0643ed

Browse files
committed
Add pipeline checker
1 parent 287f06b commit e0643ed

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2025 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
14+
name: Known Good Matches Bazel
15+
16+
on:
17+
pull_request:
18+
types: [opened, reopened, synchronize]
19+
push:
20+
branches:
21+
- main
22+
merge_group:
23+
types: [checks_requested]
24+
25+
permissions:
26+
contents: write
27+
28+
jobs:
29+
check-known-good-matches-bazel:
30+
name: Check Known Good Matches with Bazel
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Check
34+
run: |
35+
ls -la
36+
scripts/known_good/update_module_from_known_good.py --known known_good_next.json --output-dir integration/bazel_common
37+
if git diff --quiet; then
38+
echo "No changes"
39+
else
40+
echo "You have committed not aligned known_good.json to the code. Please run scripts/known_good/update_module_from_known_good.py and commit the changes to the code. Here are the differences:"
41+
git diff
42+
exit 1
43+
fi

0 commit comments

Comments
 (0)