vran
3 years ago
committed by
GitHub
4 changed files with 61 additions and 3 deletions
@ -0,0 +1,18 @@ |
|||||
|
name: check |
||||
|
on: pull_request |
||||
|
|
||||
|
jobs: |
||||
|
checkstyle: |
||||
|
name: Checkstyle |
||||
|
runs-on: ubuntu-18.04 |
||||
|
steps: |
||||
|
- uses: actions/checkout@v2 |
||||
|
- uses: reviewdog/action-setup@v1 |
||||
|
with: |
||||
|
reviewdog_version: latest |
||||
|
- name: download checkstyle |
||||
|
run: curl -o checkstyle.jar -L https://github.com/checkstyle/checkstyle/releases/download/checkstyle-9.3/checkstyle-9.3-all.jar |
||||
|
- name: checkstyle |
||||
|
env: |
||||
|
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||
|
run: java -jar checkstyle.jar -c config/checkstyle/checkstyle.xml -f xml . | reviewdog -f=checkstyle -name="Checkstyle Report" -reporter="github-check" -fail-on-error=true -level="error" -filter-mode=nofilter |
@ -0,0 +1,38 @@ |
|||||
|
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created |
||||
|
# For more information see: https://github.com/actions/setup-java#publishing-using-gradle |
||||
|
|
||||
|
name: release |
||||
|
|
||||
|
on: |
||||
|
push: |
||||
|
tags: |
||||
|
- 'v*' |
||||
|
|
||||
|
jobs: |
||||
|
jpackage: |
||||
|
runs-on: ubuntu-latest |
||||
|
|
||||
|
steps: |
||||
|
- uses: actions/checkout@v2 |
||||
|
- name: Set up JDK 11 |
||||
|
uses: actions/setup-java@v1 |
||||
|
with: |
||||
|
java-version: '11' |
||||
|
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml |
||||
|
settings-path: ${{ github.workspace }} # location for the settings.xml file |
||||
|
|
||||
|
- name: Build with Gradle |
||||
|
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 |
||||
|
with: |
||||
|
arguments: api:build -x checkstyleMain -x checkstyleTest |
||||
|
|
||||
|
- name: Release-mac |
||||
|
uses: softprops/action-gh-release@v1 |
||||
|
if: startsWith(github.ref, 'refs/tags/') |
||||
|
with: |
||||
|
files: app/build/libs/databasir.jar |
||||
|
draft: true |
||||
|
fail_on_unmatched_files: true |
||||
|
env: |
||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
||||
|
|
Loading…
Reference in new issue