Skip to content

Commit e784941

Browse files
committed
add test workflow
1 parent dc24d36 commit e784941

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/test.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches: ["[0-9]+.[0-9]+.x"]
6+
pull_request:
7+
types: [opened, synchronize]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
packages: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-java@v4
19+
with:
20+
java-version: 17
21+
distribution: temurin
22+
23+
- name: Validate Gradle wrapper
24+
uses: gradle/wrapper-validation-action@v3
25+
26+
- name: Build and upload
27+
uses: gradle/gradle-build-action@v3
28+
with:
29+
arguments: build
30+
env:
31+
CI: true

0 commit comments

Comments
 (0)