-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
926c0c3
commit 24ce228
Showing
1 changed file
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,13 +30,13 @@ jobs: | |
- name: Get current week within the year | ||
id: date | ||
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)" | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: ${{matrix.java}} | ||
- run: java -version | ||
- uses: actions/cache@v3 | ||
- uses: actions/cache@v4 | ||
id: mvn-cache | ||
with: | ||
path: ~/.m2/repository | ||
|
@@ -50,8 +50,8 @@ jobs: | |
steps: | ||
- name: Support longpaths | ||
run: git config --system core.longpaths true | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
|
@@ -67,13 +67,13 @@ jobs: | |
- name: Get current week within the year | ||
id: date | ||
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)" | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
- run: java -version | ||
- uses: actions/cache@v3 | ||
- uses: actions/cache@v4 | ||
id: mvn-cache | ||
with: | ||
path: ~/.m2/repository | ||
|
@@ -87,8 +87,8 @@ jobs: | |
- name: Get current week within the year | ||
id: date | ||
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)" | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
|
@@ -102,8 +102,8 @@ jobs: | |
gapic-libraries-bom: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 11 | ||
distribution: temurin | ||
|
@@ -115,6 +115,23 @@ jobs: | |
uses: googleapis/java-cloud-bom/tests/[email protected] | ||
with: | ||
bom-path: gapic-libraries-bom/pom.xml | ||
generation-config-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: validate generation configuration | ||
shell: bash | ||
run: | | ||
docker run \ | ||
--rm \ | ||
-u "$(id -u):$(id -g)" \ | ||
-v "$(pwd):${workspace_name}" \ | ||
--entrypoint python \ | ||
gcr.io/cloud-devrel-public-resources/java-library-generation:"${library_generation_image_tag}" \ | ||
/src/cli/entry_point.py validate-generation-config | ||
env: | ||
library_generation_image_tag: 2.40.0 | ||
workspace_name: /workspace | ||
|
||
# TODO: Uncomment the needed Github Actions | ||
# dependencies: | ||
|