Skip to content

Sync from GPI

Sync from GPI #21

Workflow file for this run

name: Gradle Build
on:
pull_request:
push:
branches:
- 'main'
workflow_dispatch:
concurrency:
group: '${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: false
jobs:
gradle-build:
name: Gradle Build
runs-on: ubuntu-latest
env:
DEPENDENCY_GRAPH_EXCLUDE_PROJECTS: ':(gradm|initialization|project)'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
dependency-graph: generate-and-upload
- run: ./gradlew build --no-daemon --stacktrace
gradle-submit-dependency-graph:
name: Gradle Submit Dependency Graph
uses: OmicoDev/gradle-project-initializer-template/.github/workflows/gradle-submit-dependency-graph.yml@main
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: gradle-build
permissions:
contents: write