Skip to content

Commit

Permalink
Update common files
Browse files Browse the repository at this point in the history
  • Loading branch information
micronaut-build committed Oct 29, 2024
1 parent 2dbb0fb commit e2f74c9
Show file tree
Hide file tree
Showing 18 changed files with 391 additions and 266 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
oot = true
root = true

[*]
trim_trailing_whitespace = true
Expand All @@ -23,4 +23,4 @@ max_line_length = 100
# See documentation https://youtrack.jetbrains.com/issue/IDEA-170643#focus=streamItem-27-3708697.0-0

[*.xml]
indent_size = 4
indent_size = 4
16 changes: 0 additions & 16 deletions .github/dependabot.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
changelog:
exclude:
authors:
- micronaut-build
categories:
- title: Breaking Changes 🛠
labels:
- 'type: breaking'
- title: New Features 🎉
labels:
- 'type: enhancement'
- title: Bug Fixes 🐞
labels:
- 'type: bug'
- title: Improvements ⭐
labels:
- 'type: improvement'
- title: Docs 📖
labels:
- 'type: docs'
- title: Dependency updates 🚀
labels:
- 'type: dependency-upgrade'
- 'dependency-upgrade'
- title: Regressions 🧐
labels:
- 'type: regression'
- title: GraalVM 🏆
labels:
- 'relates-to: graal'
- title: Other Changes 💡
labels:
- "*"
26 changes: 26 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"extends": [
"config:base"
],
"addLabels": ["type: dependency-upgrade"],
"schedule": [
"after 10pm every day"
],
"prHourlyLimit": 1,
"prConcurrentLimit": 20,
"timezone": "Europe/Prague",
"packageRules": [
{
"matchPackagePatterns": ["actions.*"],
"dependencyDashboardApproval": true,
"matchUpdateTypes": ["patch"],
"matchCurrentVersion": "!/^0/",
"automerge": true
},
{
"matchUpdateTypes": ["patch"],
"matchCurrentVersion": "!/^0/",
"automerge": true
}
]
}
4 changes: 2 additions & 2 deletions .github/workflows/central-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
uses: actions/checkout@v4
with:
ref: v${{ github.event.inputs.release_version }}
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/wrapper-validation-action@v3
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/dependency-update.yml

This file was deleted.

65 changes: 65 additions & 0 deletions .github/workflows/graalvm-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# WARNING: Do not edit this file directly. Instead, go to:
#
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows
#
# and edit them there. Note that it will be sync'ed to all the Micronaut repos
name: GraalVM Dev CI
on:
schedule:
- cron: "0 1 * * 1-5" # Mon-Fri at 1am UTC
jobs:
build_matrix:
if: github.repository != 'micronaut-projects/micronaut-project-template'
runs-on: ubuntu-latest
env:
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 }}
outputs:
matrix: ${{ steps.build-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: Build Matrix
uses: micronaut-projects/github-actions/graalvm/build-matrix@master
id: build-matrix
build:
needs: build_matrix
if: github.repository != 'micronaut-projects/micronaut-project-template'
runs-on: ubuntu-latest
strategy:
max-parallel: 6
matrix:
java: ['dev', 'latest-ea']
distribution: ['graalvm-community', 'graalvm']
native_test_task: ${{ fromJson(needs.build_matrix.outputs.matrix).native_test_task }}
exclude:
- java: 'dev'
distribution: 'graalvm'
- java: 'latest-ea'
distribution: 'graalvm-community'
env:
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 }}
steps:
- uses: actions/checkout@v4
- name: Pre-Build Steps
uses: micronaut-projects/github-actions/graalvm/pre-build@master
id: pre-build
with:
java: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
- name: Build Steps
uses: micronaut-projects/github-actions/graalvm/build@master
id: build
env:
GH_TOKEN_PUBLIC_REPOS_READONLY: ${{ secrets.GH_TOKEN_PUBLIC_REPOS_READONLY }}
GH_USERNAME: ${{ secrets.GH_USERNAME }}
GRAALVM_QUICK_BUILD: true
with:
nativeTestTask: ${{ matrix.native_test_task }}
- name: Post-Build Steps
uses: micronaut-projects/github-actions/graalvm/post-build@master
id: post-build
with:
java: ${{ matrix.java }}
65 changes: 65 additions & 0 deletions .github/workflows/graalvm-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# WARNING: Do not edit this file directly. Instead, go to:
#
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows
#
# and edit them there. Note that it will be sync'ed to all the Micronaut repos
name: GraalVM Latest CI
on:
push:
branches:
- master
- '[1-9]+.[0-9]+.x'
pull_request:
branches:
- master
- '[1-9]+.[0-9]+.x'
jobs:
build_matrix:
if: github.repository != 'micronaut-projects/micronaut-project-template'
runs-on: ubuntu-latest
env:
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 }}
outputs:
matrix: ${{ steps.build-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: Build Matrix
uses: micronaut-projects/github-actions/graalvm/build-matrix@master
id: build-matrix
build:
needs: build_matrix
if: github.repository != 'micronaut-projects/micronaut-project-template'
runs-on: ubuntu-latest
strategy:
max-parallel: 6
matrix:
java: ['17', '21']
native_test_task: ${{ fromJson(needs.build_matrix.outputs.matrix).native_test_task }}
env:
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 }}
steps:
- uses: actions/checkout@v4
- name: Pre-Build Steps
uses: micronaut-projects/github-actions/graalvm/pre-build@master
id: pre-build
with:
distribution: 'graalvm'
java: ${{ matrix.java }}
- name: Build Steps
uses: micronaut-projects/github-actions/graalvm/build@master
id: build
env:
GH_TOKEN_PUBLIC_REPOS_READONLY: ${{ secrets.GH_TOKEN_PUBLIC_REPOS_READONLY }}
GH_USERNAME: ${{ secrets.GH_USERNAME }}
GRAALVM_QUICK_BUILD: true
with:
nativeTestTask: ${{ matrix.native_test_task }}
- name: Post-Build Steps
uses: micronaut-projects/github-actions/graalvm/post-build@master
id: post-build
with:
java: ${{ matrix.java }}
Loading

0 comments on commit e2f74c9

Please sign in to comment.