Skip to content

Commit c22b3cb

Browse files
committed
update: modify build process to skip tests during build and add dedicated test job in CI
1 parent 7e51b22 commit c22b3cb

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,33 @@ jobs:
3939
SNAPSHOT: true
4040
GITHUB_SHA: ${{ github.sha }}
4141
run: |
42-
./gradlew build
42+
./gradlew build -x test
4343
mkdir -p builds
4444
cp build/libs/*.jar builds/
4545
4646
- name: Upload jar
4747
uses: actions/upload-artifact@v4
4848
with:
4949
name: "Hommr-${{ github.sha }}"
50-
path: builds/
50+
path: builds/
51+
52+
test:
53+
name: Test
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Checkout
57+
uses: actions/checkout@v4
58+
with:
59+
fetch-depth: 0
60+
61+
- name: Set up JDK 21
62+
uses: actions/setup-java@v4
63+
with:
64+
java-version: '21'
65+
distribution: 'temurin'
66+
67+
- name: Make gradlew executable
68+
run: chmod +x gradlew
69+
70+
- name: Run tests
71+
run: ./gradlew test

0 commit comments

Comments
 (0)