|
1 | 1 | # |
2 | | -# Copyright 2020-2023 Red Hat, Inc. |
| 2 | +# Copyright Red Hat |
3 | 3 | # |
4 | | -# Licensed under the Apache License, Version 2.0 (the "License"); |
5 | | -# you may not use this file except in compliance with the License. |
6 | | -# You may obtain a copy of the License at |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
7 | 7 | # |
8 | | -# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 | # |
10 | | -# Unless required by applicable law or agreed to in writing, software |
11 | | -# distributed under the License is distributed on an "AS IS" BASIS, |
12 | | -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | | -# See the License for the specific language governing permissions and |
14 | | -# limitations under the License. |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
15 | 15 | name: CI |
16 | 16 |
|
17 | 17 | on: |
@@ -44,14 +44,14 @@ jobs: |
44 | 44 |
|
45 | 45 | - name: Check index-server code generation |
46 | 46 | run: | |
47 | | - cd index/server |
48 | 47 | export GOPATH=$(go env GOPATH) |
49 | 48 | go install github.com/deepmap/oapi-codegen/cmd/[email protected] |
50 | | - bash codegen.sh |
| 49 | + bash index/server/codegen.sh |
51 | 50 | GEN_DIFFS=$(git diff --name-only --diff-filter=ACMRT | grep .gen.go$ | xargs) |
52 | 51 | if [[ ! -z "${GEN_DIFFS}" ]] |
53 | 52 | then |
54 | 53 | echo "generated source does not match current changes " |
| 54 | + for f in ${GEN_DIFFS}; do git diff HEAD -- $f; done |
55 | 55 | exit 1 |
56 | 56 | fi |
57 | 57 |
|
|
0 commit comments