Skip to content

Commit 703a60d

Browse files
authored
Remove Gradle build cache step from workflow
Removed caching for Gradle build artifacts in CI workflow.
1 parent 556b267 commit 703a60d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/test-build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build
2+
on: [ pull_request, push ]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout sources
8+
uses: actions/checkout@v6
9+
- name: Setup Java
10+
uses: actions/setup-java@v5
11+
with:
12+
distribution: 'temurin'
13+
java-version: 21
14+
- name: Setup Gradle
15+
uses: gradle/actions/setup-gradle@v5
16+
with:
17+
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
18+
- name: Build with Gradle
19+
run: ./gradlew build
20+
- name: Test with Gradle
21+
run: ./gradlew test

0 commit comments

Comments
 (0)