Files
starter-workflows/ci/gradle.yml
T

54 lines
1.5 KiB
YAML
Raw Normal View History

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
2021-08-24 18:25:52 +03:00
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
2022-10-10 11:12:22 +00:00
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
2020-03-17 11:17:19 +00:00
name: Java CI with Gradle
on:
push:
2020-07-13 12:12:41 -07:00
branches: [ $default-branch ]
2020-03-17 11:17:19 +00:00
pull_request:
2020-07-13 12:12:41 -07:00
branches: [ $default-branch ]
2020-03-17 11:17:19 +00:00
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
2020-03-17 11:17:19 +00:00
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
2020-03-17 11:17:19 +00:00
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0
2020-03-17 11:17:19 +00:00
- name: Build with Gradle
run: ./gradlew build
# Optional: Uploads the full dependency graph to GitHub to enable Dependabot alerts
dependency-submission:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@ec92e829475ac0c2315ea8f9eced72db85bb337a # v3.0.0