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

Integrating GHA #413

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
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
87 changes: 0 additions & 87 deletions .circleci/config.yml

This file was deleted.

111 changes: 111 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Run Gradle on PRs
on:
pull_request:
push:
branches:
- master
jobs:
ktlint:
timeout-minutes: 300
strategy:
matrix:
os: [ubuntu-latest]
version: [11]
vendor: [zulu]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.vendor }}
java-version: ${{ matrix.version }}

- name: Execute Gradle ktlint
run: ./gradlew ktlintCheck
build:
timeout-minutes: 300
strategy:
matrix:
os: [ubuntu-latest]
version: [11]
vendor: [zulu]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.vendor }}
java-version: ${{ matrix.version }}

- name: Execute Gradle build
run: ./gradlew assemble

pluginTest:
timeout-minutes: 300
strategy:
matrix:
os: [ubuntu-latest]
version: [11]
vendor: [zulu]
runs-on: ${{ matrix.os }}
services:
docker:
image: docker:20.10.7
options: --privileged
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.vendor }}
java-version: ${{ matrix.version }}

- name: Execute Gradle build
run: ./gradlew collectUnitTest

publisherTest:
timeout-minutes: 300
strategy:
matrix:
os: [ubuntu-latest]
version: [11]
vendor: [zulu]
runs-on: ${{ matrix.os }}
services:
docker:
image: docker:20.10.7
options: --privileged
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.vendor }}
java-version: ${{ matrix.version }}

- name: Execute Gradle build
run: ./gradlew collectUnitTestLibs

sample:
timeout-minutes: 300
strategy:
matrix:
os: [ubuntu-latest,macos-latest,windows-latest]
version: [11]
vendor: [zulu]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.vendor }}
java-version: ${{ matrix.version }}

- name: Execute Gradle build
run: |
cd sample
./gradlew assemble
./gradlew assemble --configuration-cache
./gradlew assemble --configuration-cache
36 changes: 36 additions & 0 deletions .github/workflows/snapshot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Snapshots

on:
push:
branches:
- master

jobs:
publishing_snapshots:
timeout-minutes: 300
strategy:
matrix:
os: [ubuntu-latest]
version: [11]
vendor: [zulu]
runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.version }}
distribution: ${{ matrix.vendor }}

- name: Publish snapshots
run: ./gradlew publishAllPublicationsToSnapshotsRepository
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
USERNAME_SNAPSHOT: ${{ secrets.USERNAME_SNAPSHOT }}
PASSWORD_SNAPSHOT: ${{ secrets.PASSWORD_SNAPSHOT }}