Skip to content

Commit

Permalink
Add test action
Browse files Browse the repository at this point in the history
  • Loading branch information
jprinet committed Oct 2, 2023
1 parent 0eb3d02 commit bfaa049
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test-maven-build-scan-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This workflow does not publish any build scans but allows to smoke test the composite action
name: TEST - Publish Maven Build Scan

on:
pull_request:

jobs:
create-and-save-build-scans:
name: Create and Save Build Scans
runs-on: ubuntu-latest
steps:
- name: Checkout current repository
uses: actions/checkout@v4
- name: Checkout Maven sample project
uses: actions/checkout@v4
with:
repository: 'gradle/gradle-enterprise-build-config-samples'
path: 'sample'
ref: 'main'
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
- name: Run Maven Build
working-directory: ./sample/common-gradle-enterprise-maven-configuration
run: mvn clean -B
- name: Save Maven Build Scan
uses: ./maven-build-scan/save

publish-build-scan:
name: Verify Saved Build Scans
needs: create-and-save-build-scans
runs-on: ubuntu-latest
steps:
- name: Checkout current repository
uses: actions/checkout@v4
- name: Publish Maven Build Scans
uses: ./maven-build-scan/publish
with:
develocity-url: 'https://foo.bar'
develocity-access-key: 'foo'
pr-number: ${{ github.event.number }}
- name: Check publication log
run: |
ls -la ./maven-build-scan-publisher
ls -la ~/.m2/.gradle-enterprise/build-scan-data/

0 comments on commit bfaa049

Please sign in to comment.