This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
Initial commit #1
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 check | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**' | |
- '!**.md' | |
- '!.github/**' | |
- '.github/workflows/build.yml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '**' | |
- '!**.md' | |
- '!.github/**' | |
- '.github/workflows/build.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Set up JDK | |
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2 | |
with: | |
java-version: 17 | |
distribution: adopt | |
- name: Set up gradle | |
uses: gradle/actions/setup-gradle@16bf8bc8fe830fa669c3c9f914d3eb147c629707 # v4.0.1 | |
- name: Build | |
run: ./gradlew spotlessCheck publishToMavenLocal |