fix: avoid mutating api url for each susequent requests #61
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will build a run Jacoco tests with Maven and send the coverage report to coveralls | |
| # For more information see: https://github.com/trautonen/coveralls-maven-plugin | |
| name: Generate Coverage Report and Send it to coveralls | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 11 | |
| - name: Build with Gradle | |
| run: ./gradlew build | |
| - name: Set branch name and PR number | |
| id: refs | |
| env: | |
| BRANCH_NAME_OR_REF: ${{ github.head_ref || github.ref }} | |
| run: | | |
| echo "::set-output name=branch_name::${BRANCH_NAME_OR_REF#refs/heads/}" | |
| echo "::set-output name=pr_number::$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")" | |
| - name: Coveralls Maven plugin | |
| env: | |
| CI_NAME: Github | |
| CI_BUILD_NUMBER: ${{ github.run_id }} | |
| CI_BUILD_URL: https://github.com/${{ github.repository }}/commit/${{ github.event.after }}/checks | |
| CI_BRANCH: ${{ steps.refs.outputs.branch_name }} | |
| CI_PULL_REQUEST: ${{ steps.refs.outputs.pr_number }} | |
| run: | | |
| ./gradlew coveralls \ | |
| -D repoToken=${{ secrets.COVERALLS_REPO_TOKEN }} |