Skip to content

chore: disable sign tasks when publishing snapshots. #1199

chore: disable sign tasks when publishing snapshots.

chore: disable sign tasks when publishing snapshots. #1199

Workflow file for this run

name: Test
on:
push:
branches:
- main
paths-ignore:
- '*.md'
- '*.asciidoc'
pull_request:
paths-ignore:
- '*.md'
- '*.asciidoc'
workflow_dispatch:
inputs:
reason:
description: 'Reason for manual run'
required: false
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
gradle:
strategy:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
# https://github.com/actions/runner-images/issues/2840
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # 1.3.1
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# defaults are true
android: false
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- name: Checkout the repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
- name: Setup java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # 5.2.0
with:
distribution: 'zulu'
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # 6.1.0
with:
add-job-summary-as-pr-comment: 'on-failure'
- name: Execute buildHealth for build-logic
run: './gradlew -p build-logic/ buildHealth'
- name: Execute check (build-logic)
run: './gradlew -p build-logic/ check'
- name: Execute buildHealth for main project
run: './gradlew buildHealth'
- name: Execute buildHealth for testkit project
run: './gradlew -p testkit/ buildHealth'
- name: Execute check (non-functional tests)
run: './gradlew check -s -x :functionalTest'
- name: Execute check (testkit)
run: './gradlew -p testkit/ check'
- name: Execute JVM functional tests
run: './gradlew :functionalTest -DfuncTest.package=jvm -DfuncTest.quick'
- name: Execute Android functional tests
run: './gradlew :functionalTest -DfuncTest.package=android -DfuncTest.quick'
- name: Execute KMP functional tests
run: './gradlew :functionalTest -DfuncTest.package=kmp -DfuncTest.quick'
- name: Check API
run: './gradlew :checkApi'
- name: Publish snapshot
if: github.repository == 'autonomousapps/dependency-analysis-gradle-plugin' && github.ref == 'refs/heads/main'
run: './gradlew :publishToMavenCentral'
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}