Upload coverage report first to debug failure
@@ -20,6 +20,11 @@ jobs:
run: mvn -ntp -q verify
- name: Convert Jacoco to Cobertura
run: curl -o cover2cover.py https://gist.githubusercontent.com/MikeDombo/82567fccc1b2aced0c76fc053efd5a26/raw/f79f748f37cabb4cedd186321ea70e9fb383815d/cover2cover.py && python3 cover2cover.py target/jacoco-report/jacoco.xml src/main/java > target/jacoco-report/cobertura.xml
+ - name: Upload Coverage
+ uses: actions/upload-artifact@v1.0.0
+ with:
+ name: Coverage Report
+ path: target/jacoco-report
- name: cobertura-report
uses: 5monkeys/cobertura-action@v2
with:
@@ -37,11 +42,6 @@ jobs:
show_branch: true
# Use class names instead of the filename
show_class_names: true
- - name: Upload Coverage
- uses: actions/upload-artifact@v1.0.0
- with:
- name: Coverage Report
- path: target/jacoco-report
- name: Publish with Maven
run: mvn -ntp --settings settings.xml clean deploy -Daccess-key-id=${{ secrets.evergreen_dev_snapshot_access_key_id }} -Daccess-key-secret=${{ secrets.evergreen_dev_snapshot_access_key_secret }} -Dstargate-snapshot-repository-url=${{ secrets.stargate_dev_snapshot_repository_url }}
if: github.event_name == 'push'
