-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1009 Bytes
/
pr_verify.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
name: "Build and test pull request"
on:
workflow_dispatch:
pull_request:
jobs:
build:
name: "Build and test"
runs-on: "ubuntu-20.04"
permissions:
packages: write
repository-projects: write
contents: write
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-java@v3"
with:
"java-version": "21"
"distribution": "temurin"
- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/wrapper
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/gradle.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: "Build and tests"
run: ./gradlew test build
env:
ORG_GRADLE_PROJECT_githubUser: x-access-token
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}