Skip to content

Commit

Permalink
ci: add validation workflow
Browse files Browse the repository at this point in the history
just to validate that a branch or pr still builds and passes all checks
  • Loading branch information
derklaro committed Nov 8, 2024
1 parent 4375755 commit 1b2f526
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Validate
on:
push:
branches: [ "**" ]
tags-ignore: [ "**" ]
pull_request:

permissions:
contents: read

concurrency:
cancel-in-progress: true
group: validate-${{ github.event.pull_request.number || github.ref }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup java
uses: actions/setup-java@v4
with:
java-version: 11
check-latest: true
distribution: 'zulu'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
add-job-summary: always
cache-cleanup: on-success
cache-read-only: ${{ github.ref != 'refs/heads/v3' }}

- name: Execute build
run: ./gradlew clean build --stacktrace

0 comments on commit 1b2f526

Please sign in to comment.