|
15 | 15 | # downstream client libraries before they are released. |
16 | 16 | on: |
17 | 17 | pull_request: |
18 | | -name: generation diff |
19 | | -env: |
20 | | - library_generation_image_tag: 2.73.0 # {x-version-update:gapic-generator-java:current} |
| 18 | +name: Repository Config & Code Sanity |
21 | 19 | jobs: |
22 | | - root-pom: |
23 | | - # root pom.xml does not have diff from generated one |
24 | | - runs-on: ubuntu-latest |
25 | | - steps: |
26 | | - - uses: actions/checkout@v4 |
27 | | - - name: Generate root pom.xml file |
28 | | - shell: bash |
29 | | - run: | |
30 | | - bash generation/run_generator_docker.sh "${library_generation_image_tag}" "${{ github.base_ref }}" \ |
31 | | - --quiet \ |
32 | | - -u "$(id -u):$(id -g)" \ |
33 | | - -v "$(pwd):/workspace" \ |
34 | | - --entrypoint python \ |
35 | | - -- \ |
36 | | - /src/library_generation/cli/generate_monorepo_root_pom.py \ |
37 | | - generate \ |
38 | | - --repository-path=/workspace |
39 | | - - name: Fail if there's any difference |
40 | | - run: git --no-pager diff --exit-code |
41 | | - |
42 | | - gapic-bom: |
43 | | - # gapic-libraries-bom does not have diff from generated one |
44 | | - runs-on: ubuntu-latest |
45 | | - steps: |
46 | | - - uses: actions/checkout@v4 |
47 | | - - name: Generate gapic-libraries-bom/pom.xml |
48 | | - shell: bash |
49 | | - run: | |
50 | | - bash generation/run_generator_docker.sh "${library_generation_image_tag}" "${{ github.base_ref }}" \ |
51 | | - --quiet \ |
52 | | - -u "$(id -u):$(id -g)" \ |
53 | | - -v "$(pwd):/workspace" \ |
54 | | - --entrypoint python \ |
55 | | - -- \ |
56 | | - /src/library_generation/cli/generate_monorepo_gapic_bom.py \ |
57 | | - generate \ |
58 | | - --repository-path=/workspace \ |
59 | | - --versions-file=/workspace/versions.txt |
60 | | - - name: Fail if there's any difference |
61 | | - run: git --no-pager diff --exit-code |
62 | | - |
63 | | - owlbot-py: |
64 | | - # applying templated owlbot.py config doesn't create a diff |
65 | | - runs-on: ubuntu-latest |
66 | | - steps: |
67 | | - - uses: actions/checkout@v4 |
68 | | - - name: Generate owlbot.py files |
69 | | - run: | |
70 | | - bash generation/update_owlbot_postprocessor_config.sh |
71 | | - - name: Fail if there's any difference (To fix, run generation/update_owlbot_postprocessor_config.sh) |
72 | | - run: git --no-pager diff --exit-code |
73 | | - |
74 | | - owlbot-yaml: |
75 | | - # Each module's .Owlbot-hermetic.yaml config is configured according to set_owlbot_config.sh |
76 | | - runs-on: ubuntu-latest |
77 | | - steps: |
78 | | - - uses: actions/checkout@v4 |
79 | | - - name: Check if .Owlbot-hermetic.yaml files are correctly configured |
80 | | - run: | |
81 | | - bash generation/set_owlbot_config.sh |
82 | | - - name: Fail if there's any difference (To fix, run generation/set_owlbot_config.sh) |
83 | | - run: git --no-pager diff --exit-code |
84 | | - |
85 | 20 | gitignore_correctness: |
86 | 21 | # Generated files should not match .gitignore |
87 | 22 | runs-on: ubuntu-latest |
|
0 commit comments