forked from springdoc/springdoc-openapi-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yml
33 lines (28 loc) · 797 Bytes
/
main.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
name: Test CI
on: [ push, fork ]
jobs:
TEST_ALL:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11', '17' ]
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: 🪜 Setup java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: 🦞 chmod /gradlew
run: chmod +x ./gradlew
- name: 🔦 Test
run: ./gradlew test --info