Increased the version to 1.0.24-SNAPSHOT. #17
This file contains 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
name: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Start Rabbit | |
run: make start-rabbit | |
- name: Build project | |
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V | |
- name: Run tests | |
run: mvn jacoco:prepare-agent test -B jacoco:report | |
- name: Upload tests | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
run: | | |
LATEST_VERSION="$(curl -Ls https://api.bintray.com/packages/codacy/Binaries/codacy-coverage-reporter/versions/_latest | jq -r .name)" | |
curl -Ls -o codacy-coverage-reporter "https://dl.bintray.com/codacy/Binaries/${LATEST_VERSION}/codacy-coverage-reporter-linux" | |
chmod +x codacy-coverage-reporter | |
./codacy-coverage-reporter report -l Java -r target/site/jacoco/jacoco.xml | |