Skip to content

Commit 0f47c43

Browse files
committed
ci: add path filters, concurrency, and gradle/actions/setup-gradle
1 parent e799960 commit 0f47c43

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,25 @@ on:
33
workflow_dispatch:
44
push:
55
branches: [main]
6+
paths:
7+
- 'app/**'
8+
- 'gradle/**'
9+
- '*.gradle*'
10+
- 'gradle.properties'
11+
- '.github/workflows/ci.yml'
612
pull_request:
713
branches: [main]
14+
paths:
15+
- 'app/**'
16+
- 'gradle/**'
17+
- '*.gradle*'
18+
- 'gradle.properties'
19+
- '.github/workflows/ci.yml'
20+
21+
concurrency:
22+
group: ci-${{ github.event.pull_request.number || github.ref }}
23+
cancel-in-progress: true
24+
825
jobs:
926
test:
1027
runs-on: ubuntu-latest
@@ -14,7 +31,7 @@ jobs:
1431
with:
1532
distribution: temurin
1633
java-version: 17
17-
- run: chmod +x gradlew
34+
- uses: gradle/actions/setup-gradle@v4
1835
- run: ./gradlew jacocoTestReport
1936
- uses: codecov/codecov-action@v5
2037
if: github.event_name == 'push'

0 commit comments

Comments
 (0)