Skip to content

Commit b3da544

Browse files
committed
Fix CI/CD workflows to handle dependency resolution
- Use 'mvn clean install' to build main library and install to local repository - Ensure integration tests can find main library artifact during testing - Update both CI and release workflows with correct build order
1 parent 093e475 commit b3da544

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,14 @@ jobs:
2727
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
2828
restore-keys: ${{ runner.os }}-m2
2929

30-
- name: Run tests - Main Library
31-
run: mvn clean test
30+
- name: Build and test main library
31+
run: mvn clean install
3232

33-
- name: Run tests - Integration Tests
33+
- name: Test integration tests
3434
run: |
3535
cd integration-tests
3636
mvn clean test
3737
38-
- name: Build library
39-
run: mvn clean compile
40-
41-
- name: Build integration tests
42-
run: |
43-
cd integration-tests
44-
mvn clean compile
45-
4638
jitpack-test:
4739
runs-on: ubuntu-latest
4840
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ jobs:
4242
git config --global user.name "github-actions[bot]"
4343
git config --global user.email "github-actions[bot]@users.noreply.github.com"
4444
45-
- name: Run tests
45+
- name: Build and test main library
46+
run: mvn clean install
47+
48+
- name: Test integration tests
4649
run: |
50+
cd integration-tests
4751
mvn clean test
48-
cd integration-tests && mvn clean test
4952
5053
- name: Prepare release
5154
run: |
@@ -76,7 +79,7 @@ jobs:
7679
7780
- name: Build and verify
7881
run: |
79-
mvn clean compile
82+
mvn clean install
8083
cd integration-tests && mvn clean compile
8184
8285
- name: Commit and tag release

0 commit comments

Comments
 (0)