Skip to content

Commit 06fa353

Browse files
authored
Create main.yml
1 parent 57097cb commit 06fa353

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test CI
2+
on: [ push, fork ]
3+
4+
jobs:
5+
TEST_ALL:
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
java: [ '11', '17' ]
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
14+
- uses: actions/cache@v3
15+
with:
16+
path: |
17+
~/.gradle/caches
18+
~/.gradle/wrapper
19+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
20+
restore-keys: |
21+
${{ runner.os }}-gradle-
22+
23+
- name: 🪜 Setup java ${{ matrix.java }}
24+
uses: actions/setup-java@v3
25+
with:
26+
java-version: ${{ matrix.java }}
27+
distribution: temurin
28+
29+
- name: 🦞 chmod /gradlew
30+
run: chmod +x ./gradlew
31+
32+
- name: 🔦 Test
33+
run: ./gradlew test --info

0 commit comments

Comments
 (0)