Skip to content

Commit 2177259

Browse files
glaudeeeclaude
andauthored
ci: unify on github-workflow-standard (#9)
* ci: unify on github-workflow-standard (build.yml + release.yml) - maven.yml → build.yml: build-only, push (branches-ignore main, kein pull_request → keine Doppel-Läufe), concurrency, least-priv permissions; JDK-Matrix [11,17,21] behalten; mvn verify statt compile test. - Action-Versionen auf latest major (checkout@v4, setup-java@v4). - Toter ACCESS_TOKEN-Env-Var entfernt (in keiner pom.xml referenziert). - release.yml: explizite permissions: contents: write (JitPack/README). - Runner unverändert ubuntu-latest (kein self-hosted). Standard: personal vault/concepts/github-workflow-standard.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * ci: add CODEOWNERS + auto-assign (codejanovic) Reviewer via CODEOWNERS, Assignee via auto-assign workflow. Standard: personal vault/concepts/github-workflow-standard.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 40e6d98 commit 2177259

5 files changed

Lines changed: 60 additions & 26 deletions

File tree

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Code owner: auto-request review from codejanovic on every PR.
2+
# Enforce via branch protection "Require review from Code Owners".
3+
* @codejanovic

.github/workflows/auto-assign.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Sets codejanovic as ASSIGNEE on every PR (reviewer handled by .github/CODEOWNERS).
2+
name: Auto-assign
3+
4+
on:
5+
pull_request:
6+
types: [opened, reopened]
7+
8+
permissions:
9+
pull-requests: write
10+
11+
jobs:
12+
assign:
13+
if: github.event.pull_request.head.repo.full_name == github.repository
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/github-script@v7
17+
with:
18+
script: |
19+
await github.rest.issues.addAssignees({
20+
owner: context.repo.owner,
21+
repo: context.repo.repo,
22+
issue_number: context.issue.number,
23+
assignees: ['codejanovic'],
24+
});

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches-ignore: [main] # main = release branch → release.yml; PRs inherit via head SHA
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
build:
16+
name: Build for JDK ${{ matrix.java }}
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
java: [11, 17, 21]
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Set up JDK ${{ matrix.java }}
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: ${{ matrix.java }}
27+
distribution: temurin
28+
cache: maven
29+
- name: Build & test
30+
run: mvn -B -ntp verify

.github/workflows/maven.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: write # README version bump push
9+
710
jobs:
811
trigger-jitpack:
912
name: Trigger JitPack Build

0 commit comments

Comments
 (0)