Skip to content

Commit

Permalink
Update GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Omico committed May 23, 2024
1 parent 460cdaf commit c1df3af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 32 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@ concurrency:
cancel-in-progress: false

jobs:
gradle-wrapper-validation:
name: Gradle Wrapper validation
uses: OmicoDev/gradle-project-initializer-template/.github/workflows/gradle-wrapper-validation.yml@main

gradle-build:
name: Gradle Build
runs-on: ubuntu-latest
needs: gradle-wrapper-validation
env:
DEPENDENCY_GRAPH_EXCLUDE_PROJECTS: ':(gradm|initialization|project)'
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -34,6 +31,8 @@ jobs:
uses: gradle/actions/setup-gradle@v3
with:
gradle-home-cache-cleanup: true
validate-wrappers: true
dependency-graph: generate-and-upload

- run: ./gradlew build --no-daemon --stacktrace

Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/gradle-submit-dependency-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,8 @@ permissions:
jobs:
gradle-submit-dependency-graph:
runs-on: ubuntu-latest
env:
DEPENDENCY_GRAPH_EXCLUDE_PROJECTS: ':(gradm|initialization|project)'
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Download and submit dependency graph
uses: gradle/actions/dependency-submission@v3
with:
gradle-home-cache-cleanup: true
dependency-graph: generate-and-submit

- run: ./gradlew build --no-daemon --stacktrace
dependency-graph: download-and-submit
12 changes: 0 additions & 12 deletions .github/workflows/gradle-wrapper-validation.yml

This file was deleted.

0 comments on commit c1df3af

Please sign in to comment.