Skip to content

Commit 60a2d88

Browse files
committed
add ci tests
1 parent df416e1 commit 60a2d88

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/tests.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Tests
2+
3+
# Controls when the action will run.
4+
on:
5+
6+
pull_request:
7+
branches: [ main ]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Git Checkout
19+
uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Setup Java
24+
uses: actions/setup-java@v1
25+
with:
26+
java-version: '15'
27+
28+
- name: Setup Build Cache
29+
uses: actions/cache@v2
30+
with:
31+
path: |
32+
~/.gradle/caches
33+
~/.gradle/wrapper
34+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
35+
restore-keys: |
36+
${{ runner.os }}-gradle-
37+
- name: Tests
38+
run: |
39+
./gradlew check

0 commit comments

Comments
 (0)