Skip to content

[create-pull-request] Gradle Update #628

[create-pull-request] Gradle Update

[create-pull-request] Gradle Update #628

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
tags-ignore:
- '**'
workflow_dispatch:
permissions:
id-token: write
contents: write
jobs:
build-job:
name: "Build"
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: '${{ secrets.GITHUB_TOKEN }}'
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '20'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
- name: Validate NPM Token
run: npm whoami
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: testspace-com/setup-testspace@v1
with:
domain: robertfmurdock
- name: Version
run: ./gradlew calculateVersion -PexportToGithub=true --scan
- name: Build 🔨
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: ./gradlew release check -Pversion=${{ env.TAGGER_VERSION }} -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} --no-configuration-cache --scan
- name: Update Contributions
uses: robertfmurdock/coupling-contribution-action@v2
with:
save-contribution: ${{ github.ref == 'refs/heads/main' }}
coupling-secret: ${{ secrets.COUPLING_API_PARTY_SECRET }}
party-id: 9df8b8ef-f10f-4b75-bde1-d691c148378c
cycle-time-from-first-commit: true
contribution-file: build/digger/current.json
- name: Collect Results
if: ${{ always() }}
run: ./gradlew collectResults
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: test-output
path: |
build/test-output/
- name: Push result to Testspace server
if: always()
run: |
testspace $(find . -path *test-results* -name *.xml)