-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (37 loc) · 1.11 KB
/
build.yaml
File metadata and controls
40 lines (37 loc) · 1.11 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
39
40
name: Java CI
on:
push:
branches:
- main
pull_request:
permissions:
checks: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@a5ad31d6a139d249332a2605b85202e8c0b78450 # v2.19.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.adoptopenjdk.net:443
downloads.gradle-dn.com:443
github-cloud.githubusercontent.com:443
github.com:443
jcenter.bintray.com:443
objects.githubusercontent.com:443
plugins.gradle.org:443
repo.maven.apache.org:443
services.gradle.org:443
plugins-artifacts.gradle.org:443
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
lfs: true
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: 'adopt'
java-version: '17'
cache: 'gradle'
- uses: gradle/actions/wrapper-validation@v6
- run: ./gradlew --no-daemon check