Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polish GHA config #100

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 17 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
---
name: Java CI
name: CI

on: [push]
on:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
build:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
java: [17.0.6]
fail-fast: false
max-parallel: 4
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}

os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build #./gradlew clean test
...
distribution: 'zulu'
java-version: 17
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/actions/setup-gradle@v3
- run: ./gradlew build
Loading