-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 1.01 KB
/
ci.yml
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
name: CI
on: [ pull_request ]
jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
# creates a new check with unit test results
checks: write
# needs to git diff the repo
contents: read
# find the pr for this commit
issues: read
# write artifacts and comment on pr related to this
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 17
cache: 'gradle'
- name: clean build
run: ./gradlew clean build --no-daemon --info --stacktrace
- name: Upload Test Results
# see ci-test.check.yml for workflow that publishes test results without security issues for forks
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: check-ci-results
path: '**/build/test-results/test/TEST-*.xml'