Skip to content

Commit 5da6268

Browse files
committed
Add tests workflow
1 parent b1072c3 commit 5da6268

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
java-version: ["8", "11", "16", "17", "21"]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Set up JDK
22+
uses: actions/setup-java@v3
23+
with:
24+
java-version: ${{ matrix.java-version }}
25+
distribution: "temurin"
26+
cache: maven
27+
28+
- name: Run tests
29+
run: mvn test
30+
env:
31+
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}

0 commit comments

Comments
 (0)