Skip to content

Commit

Permalink
Use OpenRewrite CI workflow
Browse files Browse the repository at this point in the history
Issue #4
  • Loading branch information
sghill committed Jun 29, 2023
1 parent 71664c6 commit 61c6c45
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,22 @@ on:
pull_request:
branches:
- main
workflow_dispatch: {}
schedule:
- cron: 0 17 * * *

env:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
GRADLE_SWITCHES: "-s --console=plain --info --stacktrace"
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
fail-fast: false
matrix:
java: ["11"]
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: set-up-jdk
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: ${{ matrix.java }}
cache: "gradle"
- name: build
run: ./gradlew ${GRADLE_SWITCHES} build test
uses: openrewrite/gh-automation/.github/workflows/ci-gradle.yml@main
secrets:
gradle_enterprise_access_key: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
gradle_enterprise_cache_username: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
gradle_enterprise_cache_password: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
ossrh_username: ${{ secrets.OSSRH_USERNAME }}
ossrh_token: ${{ secrets.OSSRH_TOKEN }}
ossrh_signing_key: ${{ secrets.OSSRH_SIGNING_KEY }}
ossrh_signing_password: ${{ secrets.OSSRH_SIGNING_PASSWORD }}

0 comments on commit 61c6c45

Please sign in to comment.