Skip to content

Commit

Permalink
chore: add a configuration checker (#10761)
Browse files Browse the repository at this point in the history
* 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
JoeWang1127 authored May 7, 2024
1 parent 926c0c3 commit 24ce228
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 24ce228

Please sign in to comment.