-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (37 loc) · 1.15 KB
/
build.yaml
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@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
lfs: true
- uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4.1.0
with:
distribution: 'adopt'
java-version: '11'
cache: 'gradle'
- uses: gradle/wrapper-validation-action@699bb18358f12c5b78b37bb0111d3a0e2276e0e2 # v2.1.1
- run: ./gradlew --no-daemon check