Skip to content

Commit 24ce228

Browse files
authored
chore: add a configuration checker (#10761)
* chore: add a configuration checker * format code * change config to test checker * Revert "change config to test checker" This reverts commit 51ad70a. * update image tag * change docker cmd * change command * change command * change command
1 parent 926c0c3 commit 24ce228

File tree

1 file changed

+29
-12
lines changed

1 file changed

+29
-12
lines changed

.github/workflows/ci.yaml

+29-12
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
- name: Get current week within the year
3131
id: date
3232
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)"
33-
- uses: actions/checkout@v3
34-
- uses: actions/setup-java@v3
33+
- uses: actions/checkout@v4
34+
- uses: actions/setup-java@v4
3535
with:
3636
distribution: temurin
3737
java-version: ${{matrix.java}}
3838
- run: java -version
39-
- uses: actions/cache@v3
39+
- uses: actions/cache@v4
4040
id: mvn-cache
4141
with:
4242
path: ~/.m2/repository
@@ -50,8 +50,8 @@ jobs:
5050
steps:
5151
- name: Support longpaths
5252
run: git config --system core.longpaths true
53-
- uses: actions/checkout@v3
54-
- uses: actions/setup-java@v3
53+
- uses: actions/checkout@v4
54+
- uses: actions/setup-java@v4
5555
with:
5656
distribution: temurin
5757
java-version: 11
@@ -67,13 +67,13 @@ jobs:
6767
- name: Get current week within the year
6868
id: date
6969
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)"
70-
- uses: actions/checkout@v3
71-
- uses: actions/setup-java@v3
70+
- uses: actions/checkout@v4
71+
- uses: actions/setup-java@v4
7272
with:
7373
distribution: temurin
7474
java-version: 11
7575
- run: java -version
76-
- uses: actions/cache@v3
76+
- uses: actions/cache@v4
7777
id: mvn-cache
7878
with:
7979
path: ~/.m2/repository
@@ -87,8 +87,8 @@ jobs:
8787
- name: Get current week within the year
8888
id: date
8989
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)"
90-
- uses: actions/checkout@v3
91-
- uses: actions/setup-java@v3
90+
- uses: actions/checkout@v4
91+
- uses: actions/setup-java@v4
9292
with:
9393
distribution: temurin
9494
java-version: 11
@@ -102,8 +102,8 @@ jobs:
102102
gapic-libraries-bom:
103103
runs-on: ubuntu-latest
104104
steps:
105-
- uses: actions/checkout@v3
106-
- uses: actions/setup-java@v3
105+
- uses: actions/checkout@v4
106+
- uses: actions/setup-java@v4
107107
with:
108108
java-version: 11
109109
distribution: temurin
@@ -115,6 +115,23 @@ jobs:
115115
uses: googleapis/java-cloud-bom/tests/[email protected]
116116
with:
117117
bom-path: gapic-libraries-bom/pom.xml
118+
generation-config-check:
119+
runs-on: ubuntu-latest
120+
steps:
121+
- uses: actions/checkout@v4
122+
- name: validate generation configuration
123+
shell: bash
124+
run: |
125+
docker run \
126+
--rm \
127+
-u "$(id -u):$(id -g)" \
128+
-v "$(pwd):${workspace_name}" \
129+
--entrypoint python \
130+
gcr.io/cloud-devrel-public-resources/java-library-generation:"${library_generation_image_tag}" \
131+
/src/cli/entry_point.py validate-generation-config
132+
env:
133+
library_generation_image_tag: 2.40.0
134+
workspace_name: /workspace
118135

119136
# TODO: Uncomment the needed Github Actions
120137
# dependencies:

0 commit comments

Comments
 (0)