forked from hyphanet/fred
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.26 KB
/
ci.yml
File metadata and controls
38 lines (31 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ main, develop, 'release/**', 'hotfix/**' ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ main, develop, 'feature/**', 'bugfix/**', 'hotfix/**', 'release/**' ]
jobs:
build:
uses: ./.github/workflows/build.yml
with:
git-ref: ${{ github.head_ref || github.ref_name }}
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
dependency-submission:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'temurin'
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@f29f5a9d7b09a7c6b29859002d29d24e1674c884 # v5