Skip to content

Commit

Permalink
ci: add showcase-clirr check (#1805)
Browse files Browse the repository at this point in the history
* ci: add showcase-clirr check

* chore: eliminate showcase version assumption

* chore: use target-branch showcase version for comparison
  • Loading branch information
burkedavison authored Jun 23, 2023
1 parent 4c74107 commit 355b713
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,36 @@ jobs:
-P enable-integration-tests \
--batch-mode \
--no-transfer-progress
showcase-clirr:
if: ${{ github.base_ref != '' }} # Only execute on pull_request trigger event
runs-on: ubuntu-22.04
steps:
- name: Checkout @ target branch
uses: actions/checkout@v3
with:
ref: ${{ github.base_ref }}
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
cache: maven
- name: Install sdk-platform-java and showcase to local maven repository
run: |
mvn install -B -ntp -T 1C -DskipTests
cd showcase
mvn install -B -ntp -T 1C -DskipTests
SHOWCASE_CLIENT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "SHOWCASE_CLIENT_VERSION=$SHOWCASE_CLIENT_VERSION" >> "$GITHUB_ENV"
- name: Checkout sdk-platform-java @ PR merge commit
uses: actions/checkout@v3
# Showcase golden test ensures that src changes are already reflected in the PR.
- name: Clirr check
working-directory: showcase
run: |
mvn versions:set -B -ntp -DnewVersion=local
mvn clirr:check -B -ntp -Dclirr.skip=false -DcomparisonVersion=$SHOWCASE_CLIENT_VERSION
gapic-generator-java-bom:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 355b713

Please sign in to comment.