release 2.0.4 #9
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 Java project with Gradle | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
| name: Continuous Integration | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| tags-ignore: | |
| - '*.*' | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 11 | |
| - name: Compile java | |
| run: ./gradlew compileJava compileTestJava -i | |
| - name: Run tests | |
| run: ./gradlew test -i | |
| - name: Publish jars | |
| run: ./gradlew publish -i | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Publish unit test results | |
| uses: EnricoMi/publish-unit-test-result-action@v1.5 | |
| if: always() | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| files: build/test-results/**/*.xml |