Skip to content

Commit e5d0296

Browse files
committed
Apply repository rules: add CI/CD workflow, update Dependabot, add LICENSE and badges
- Add GitHub Actions build.yml workflow with Java 21 support - Update Dependabot configuration for daily Maven updates - Add MIT LICENSE file - Update README.md with build status, license, and language badges - Configure proper permissions in CI workflow
1 parent a76cb9f commit e5d0296

File tree

4 files changed

+75
-1
lines changed

4 files changed

+75
-1
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,17 @@ updates:
33
- package-ecosystem: "maven"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "daily"
77
groups:
88
all-dependencies:
99
patterns:
1010
- "*"
11+
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"
16+
groups:
17+
all-actions:
18+
patterns:
19+
- "*"

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up JDK 21
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '21'
23+
distribution: 'temurin'
24+
25+
- name: Cache Maven dependencies
26+
uses: actions/cache@v4
27+
with:
28+
path: ~/.m2
29+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
30+
restore-keys: ${{ runner.os }}-m2
31+
32+
- name: Build with Maven
33+
run: mvn clean compile
34+
35+
- name: Run tests
36+
run: mvn test
37+
38+
- name: Verify package
39+
run: mvn package

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 forketyfork
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# hibernate-extended-enhancement
2+
3+
[![Build status](https://github.com/forketyfork/hibernate-extended-enhancement/actions/workflows/build.yml/badge.svg)](https://github.com/forketyfork/hibernate-extended-enhancement/actions/workflows/build.yml)
4+
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
5+
[![Java](https://img.shields.io/badge/language-Java-orange.svg)](https://www.oracle.com/java/)
6+
27
Source code for the article [Hibernate Extended Bytecode Enhancement](https://medium.com/@forketyfork/hibernate-extended-bytecode-enhancement-ae73962c9bf4)

0 commit comments

Comments
 (0)