Skip to content

Commit fe9f774

Browse files
committed
Add branch test action
1 parent aafdb1b commit fe9f774

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/branch-test.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Gradle Check
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- 'feature/**'
8+
- 'candidate/**'
9+
paths-ignore:
10+
- '*.md'
11+
- '.github/**'
12+
13+
jobs:
14+
check:
15+
name: check formalities and run tests
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up JDK 11
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: 'temurin'
24+
java-version: 11
25+
java-package: jdk
26+
27+
- name: Grant execute permission for gradlew
28+
run: chmod +x gradlew
29+
30+
- uses: actions/cache@v4
31+
with:
32+
path: |
33+
~/.gradle/caches
34+
key: ${{ runner.os }}-gradle-check-${{ hashFiles('versions.lock') }}
35+
restore-keys: |
36+
${{ runner.os }}-gradle-check-
37+
${{ runner.os }}-gradle-
38+
39+
- name: Run gradle check
40+
run: ./gradlew check

0 commit comments

Comments
 (0)