Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,28 @@ jobs:
JOB_TYPE: test
JOB_NAME: units-8-runtime-${{matrix.java}}
working-directory: ${{matrix.package}}
split-clirr:
runs-on: ubuntu-latest
needs: changes
strategy:
matrix:
package: ${{ fromJSON(needs.changes.outputs.packages) }}
steps:
- name: Get current week within the year
id: date
run: echo "::set-output name=week_of_year::$(date +'%W' --utc)"
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
- run: .kokoro/build.sh
env:
BUILD_SUBDIR: ${{matrix.package}}
JOB_TYPE: clirr
JOB_NAME: clirr-${{matrix.package}}
required:
needs: [ changes, split-units ]
needs: [ changes, split-units, split-clirr ]
name: conditional-required-check
if: ${{ always() }} # Always run even if any "needs" jobs fail
runs-on: ubuntu-22.04
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/google-auth-library-java-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,24 @@ jobs:
BUILD_SUBDIR: google-auth-library-java
JOB_TYPE: test
SUREFIRE_JVM_OPT: "-P '!slf4j2x,slf4j2x-test'"
clirr:
Comment thread
chingor13 marked this conversation as resolved.
needs: filter
if: ${{ needs.filter.outputs.library == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: clirr
BUILD_SUBDIR: google-auth-library-java

required:
needs: [ units-logging ]
needs: [ units-logging, clirr ]
name: conditional-required-check
if: ${{ always() }} # Always run even if any "needs" jobs fail
runs-on: ubuntu-22.04
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/sdk-platform-java-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ jobs:
GOOGLE_SDK_JAVA_LOGGING: true
working-directory: sdk-platform-java

clirr:
needs: filter
if: ${{ needs.filter.outputs.library == 'true' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- run: java -version
- run: .kokoro/build.sh
env:
JOB_TYPE: clirr
BUILD_SUBDIR: sdk-platform-java

sdk-platform-java-8:
needs: filter
if: ${{ needs.filter.outputs.library == 'true' }}
Expand Down
23 changes: 23 additions & 0 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,29 @@ case ${JOB_TYPE} in
popd
fi
;;
clirr)
if [[ -n "${BUILD_SUBDIR}" ]]
then
echo "Compiling and building all modules for ${BUILD_SUBDIR}"
install_modules "${BUILD_SUBDIR}"
echo "Running in subdir: ${BUILD_SUBDIR}"
pushd "${BUILD_SUBDIR}"
EXTRA_PROFILE_OPTS=()
else
install_modules "sdk-platform-java"
fi
mvn -B -ntp \
-Dfmt.skip=true \
-Denforcer.skip=true \
-Dcheckstyle.skip=true \
clirr:check
RETURN_CODE=$?
if [[ -n "${BUILD_SUBDIR}" ]]
then
echo "restoring directory"
popd
fi
;;
*) ;;

esac
Expand Down
Loading