Skip to content

Commit

Permalink
ci: update GHA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Mar 1, 2024
1 parent c24fdd9 commit 6b02b54
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,44 @@
on: [ pull_request, push]
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: Validate

on:
push:
branches-ignore: # build all branches except:
- 'dependabot/**' # prevent GHA triggered twice (once for commit to the branch and once for opening/syncing the PR)
tags-ignore: # don't build tags
- '**'
paths-ignore:
- '**/*.md'
- '.editorconfig'
- '.git*'
- '.github/*.yml'
pull_request:
paths-ignore:
- '**/*.md'
- '.editorconfig'
- '.git*'
- '.github/*.yml'
workflow_dispatch: # https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3
- name: Git Checkout
uses: actions/checkout@v4 # https://github.com/actions/checkout

- name: Set up JDK 11 ☕
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
cache: gradle

- name: Build with Gradle 🏗️
run: ./gradlew build

0 comments on commit 6b02b54

Please sign in to comment.