Merge pull request #2891 from F43nd1r/fix-coveralls-upload

Don't include examples in coverage
This commit is contained in:
Jan-Willem Gmelig Meyling 2021-06-07 17:42:38 +02:00 committed by GitHub
commit 83f96f32cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,6 @@ jobs:
include:
- target: test
containers: db2 mysql postgresql mongo sqlserver oracle cubrid firebird
maven-args: --activate-profiles all,travis,examples
runs-on: ubuntu-latest
steps:
@ -64,7 +63,7 @@ jobs:
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- name: Run tests
run: mvn --batch-mode install -am jacoco:report ${{ matrix.maven-args }}
run: mvn --batch-mode install -am jacoco:report --activate-profiles all,travis,examples
- name: Upload test reports
uses: actions/upload-artifact@v2
@ -77,7 +76,7 @@ jobs:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: mvn --batch-mode coveralls:report ${{ matrix.maven-args }}
run: mvn --batch-mode coveralls:report --activate-profiles all,travis
- name: Deploy snapshot 🚀
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}