Skip to content

Commit

Permalink
Travis -> GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Dec 14, 2020
1 parent 446ec81 commit e8f7850
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-2.x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run:
- mvn clean install --batch-mode --file pom.xml
- mvn test -Pskip-default-test -Pintegration-test --batch-mode --file pom.xml
run: |
mvn clean install --batch-mode --file pom.xml
mvn test -Pskip-default-test -Pintegration-test --batch-mode --file pom.xml
25 changes: 19 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,24 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run:
- mvn clean install --batch-mode --file pom.xml
- mvn test -Pskip-default-test -Pintegration-test --batch-mode --file pom.xml
# only send coverage data for Java 8
run: |
mvn clean install --batch-mode --file pom.xml
mvn test -Pskip-default-test -Pintegration-test --batch-mode --file pom.xml
# this is necessary to populate the environment variables for Coveralls properly
- 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: Update coverage data
# only send coverage data for Java 8
if: ${{ matrix.java-version == '8' }}
run:
- mvn jacoco:report coveralls:report --batch-mode --file pom.xml
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: mvn jacoco:report coveralls:report --batch-mode --file pom.xml --no-transfer-progress -DrepoToken=${{ secrets.COVERALLS_TOKEN }}

0 comments on commit e8f7850

Please sign in to comment.