Skip to content

chore: update maven repository url #116

chore: update maven repository url

chore: update maven repository url #116

Workflow file for this run

# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.
name: build
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set environmental variables
run: |
echo "GITHUB_USERNAME=$GITHUB_ACTOR" >> $GITHUB_ENV
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup jdk
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
cache: 'gradle'
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: build
run: ./gradlew build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: capture build artifacts
uses: actions/upload-artifact@v2
with:
name: Artifacts
path: build/libs/
checkstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: checkstyle
uses: nikitasavinov/checkstyle-action@0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
checkstyle_config: "rulesets.xml"
reporter: ${{ github.event_name == 'pull_request' && 'github-pr-check' || 'github-check' }}