Update github actions #423
Workflow file for this run
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: [pull_request, push, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Skip duplicates and docs | |
id: skip | |
uses: fkirc/skip-duplicate-actions@v5 | |
with: | |
paths_ignore: '["**/README.md", "LICENSE", ".gitignore", ".editorconfig", ".idea/**"]' | |
- name: Validate gradle wrapper | |
if: steps.skip.outputs.should_skip != 'true' | |
uses: gradle/wrapper-validation-action@v3 | |
- name: Setup JDK | |
if: steps.skip.outputs.should_skip != 'true' | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
cache: gradle | |
distribution: temurin | |
- name: Build with gradle | |
if: steps.skip.outputs.should_skip != 'true' | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: ./gradlew build |