This repository was archived by the owner on Feb 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.65 KB
/
ci.yml
File metadata and controls
59 lines (51 loc) · 1.65 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# ******** NOTE ********
# If you need access to the GitHub Maven package registry from other repositories,
# create a personal access token with the following scopes:
# - read:packages
# and name it "READ_PACKAGES".
# After this step, overwrite the default GITHUB_TOKEN environment variable with the created PAT
# in the gradle build and test steps.
name: CI
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout 📥
uses: actions/checkout@v2.4.0
- name: Set up JDK 16 💿
uses: actions/setup-java@v2.5.0
with:
distribution: 'zulu'
java-version: '16'
java-package: jdk
cache: 'gradle'
- name: Build packages 🛠️
run: chmod +x gradlew && ./gradlew build
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout 📥
uses: actions/checkout@v2.4.0
- name: Set up JDK 16 💿
uses: actions/setup-java@v2.5.0
with:
distribution: 'zulu'
java-version: '16'
java-package: jdk
cache: 'gradle'
- name: Build packages 🛠️
run: chmod +x gradlew && ./gradlew build
- name: Test packages 🛃
run: ./gradlew test
# - name: Upload Test Report 📠
# uses: scacap/action-surefire-report@v1.0.13
# if: ${{ github.actor != 'dependabot[bot]' }}
# with:
# report_paths: '**/build/test-results/test/TEST-*.xml'
# github_token: ${{ secrets.GITHUB_TOKEN }}