Skip to content

Commit afe7d9a

Browse files
committed
Update dependencies and github actions config
1 parent 6fd37b8 commit afe7d9a

26 files changed

+246
-487
lines changed

.github/CODEOWNERS

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
* @coditory/reviewers
2+
3+
# Exclusions so changes made by dependabot and other bots could be auto reviewed by Coditory App.
4+
# Currently App cannot be a part of a team or CODEOWNERS file.
5+
# https://github.com/orgs/community/discussions/23064
6+
.github/workflows/*
7+
gradle/**
8+
**/build.gradle.kts
9+
**/settings.gradle.kts
10+
gradle/**
11+
gradlew
12+
gradlew.bat

.github/CONTRIBUTING.md

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

.github/ISSUE_TEMPLATE/bug_report.md

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

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/ISSUE_TEMPLATE/feature-request.md

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

.github/PULL_REQUEST_TEMPLATE.md

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

.github/codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage:
2+
status:
3+
patch: off

.github/dependabot.yml

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,46 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "gradle"
3+
- package-ecosystem: "github-actions"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "daily"
7+
groups:
8+
# merged and released instantly
9+
sec-updates:
10+
applies-to: security-updates
11+
patterns:
12+
- "*"
13+
# merged automatically
14+
dev-dependencies:
15+
patterns:
16+
- "*"
717

8-
- package-ecosystem: "github-actions"
18+
- package-ecosystem: "gradle"
919
directory: "/"
1020
schedule:
11-
interval: "weekly"
21+
interval: "daily"
22+
groups:
23+
# merged and released instantly
24+
sec-updates:
25+
applies-to: security-updates
26+
patterns:
27+
- "*"
28+
# merged automatically
29+
dev-dependencies:
30+
patterns:
31+
# gradle plugins
32+
- "*kotlin-gradle-plugin"
33+
- "*publish-plugin"
34+
# test dependencies
35+
- "org.spockframework*"
36+
- "ch.qos.logback*"
37+
- "*jsonassert"
38+
# merged and released automatically
39+
prod-dependencies:
40+
update-types:
41+
- "patch"
42+
- "minor"
43+
# requires human approval and has higher chance to fail build
44+
prod-dependencies-major:
45+
update-types:
46+
- "major"

.github/labeler.yml

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,47 @@
1-
source:
2-
- "src/**"
1+
backport:
2+
- head-branch: ['^v[0-9]+\.x\.x']
3+
4+
code:
5+
- changed-files:
6+
- any-glob-to-any-file:
7+
- "src/**"
38

49
build:
5-
- "**/*.gradle"
6-
- "**/*.gradle.kts"
10+
- changed-files:
11+
- any-glob-to-any-file:
12+
- "**/*.gradle*"
713

814
ci:
9-
- ".github/**"
15+
- changed-files:
16+
- any-glob-to-any-file:
17+
- ".github/**"
1018

1119
documentation:
12-
- "**/*.md"
13-
- "docs/**"
20+
- changed-files:
21+
- any-glob-to-any-file:
22+
- "**/*.md"
23+
- "docs/**"
1424

1525
license:
16-
- "LICENSE"
26+
- changed-files:
27+
- any-glob-to-any-file:
28+
- "LICENSE"
1729

1830
gradle:
19-
- "gradlew"
20-
- "gradlew.bat"
21-
- ".gradle/**"
22-
- "gradle/**"
31+
- changed-files:
32+
- any-glob-to-any-file:
33+
- "gradlew*"
34+
- ".gradle/**"
35+
- "gradle/**"
36+
- "setting.gradle*"
2337

24-
git:
25-
- ".gitignore"
38+
gitignore:
39+
- changed-files:
40+
- any-glob-to-any-file:
41+
- ".gitignore"
2642

27-
style:
28-
- ".editorconfig"
29-
- ".idea/codeStyles/**"
43+
codestyle:
44+
- changed-files:
45+
- any-glob-to-any-file:
46+
- ".editorconfig"
47+
- ".idea/codeStyles/**"

.github/workflows/build.yml

Lines changed: 7 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,17 @@
11
name: Build
22

33
on:
4-
pull_request:
54
workflow_dispatch:
5+
pull_request:
66
push:
7-
tags:
8-
- 'v*'
97
branches-ignore:
10-
- 'dependabot/**'
118
- 'gh-pages'
129

1310
jobs:
1411
build:
15-
runs-on: ubuntu-latest
16-
timeout-minutes: 15
17-
if: |
18-
(github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork)
19-
|| (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork || startsWith(github.head_ref, 'dependabot/')))
20-
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
25-
26-
- name: Setup Gradle
27-
uses: gradle/gradle-build-action@v2
28-
29-
- name: Setup JDK
30-
uses: actions/setup-java@v4
31-
with:
32-
java-version: 21
33-
cache: gradle
34-
distribution: temurin
35-
36-
- name: Build
37-
run: ./gradlew build coverage
38-
39-
- name: Publish Test Report
40-
if: success() || failure() # run this step even if previous step failed
41-
continue-on-error: true
42-
uses: dorny/test-reporter@v1
43-
with:
44-
name: test report
45-
path: ./**/build/test-results/test/*.xml
46-
reporter: java-junit
47-
48-
- name: Publish Coverage Report
49-
uses: codecov/codecov-action@v4
50-
if: github.repository == 'coditory/quark-context' && github.ref == 'refs/heads/main'
51-
continue-on-error: true
52-
with:
53-
token: ${{ secrets.CODECOV_TOKEN }}
54-
override_commit: ${{ github.event.workflow_run.head_sha }}
55-
override_branch: ${{ github.event.workflow_run.head_branch }}
56-
override_build: ${{ github.event.workflow_run.id }}
57-
files: 'build/reports/kover/report.xml'
58-
59-
- name: Import GPG Key
60-
id: gpg
61-
uses: crazy-max/ghaction-import-gpg@v6
62-
if: |
63-
github.repository == 'coditory/quark-context' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
64-
with:
65-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
66-
passphrase: ${{ secrets.GPG_PASSPHRASE }}
67-
git_user_signingkey: true
68-
git_commit_gpgsign: true
69-
git_committer_name: Coditory Bot
70-
git_committer_email: [email protected]
71-
72-
- name: Publish Snapshot
73-
if: github.repository == 'coditory/quark-context' && github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
74-
env:
75-
SIGNING_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
76-
SIGNING_PASSWORD: ${{ secrets.GPG_PASSPHRASE }}
77-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
78-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
79-
run: ./gradlew publishToSonatype version
80-
81-
- name: Publish Release
82-
id: publish-release
83-
if: github.repository == 'coditory/quark-context' && startsWith(github.ref, 'refs/tags/v') && (github.event_name == 'push' || github.event_name == 'release' || github.event_name == 'workflow_dispatch')
84-
env:
85-
SIGNING_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
86-
SIGNING_PASSWORD: ${{ secrets.GPG_PASSPHRASE }}
87-
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
88-
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
89-
OSSRH_STAGING_PROFILE_ID: ${{ secrets.OSSRH_STAGING_PROFILE_ID }}
90-
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository version -Pversion=${GITHUB_REF_NAME:1}
91-
92-
- name: Generate Release Notes
93-
id: generate-release-notes
94-
if: steps.publish-release.conclusion == 'success'
95-
env:
96-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97-
run: |
98-
declare -r NOTES="$(gh api \
99-
--method POST \
100-
-H "Accept: application/vnd.github+json" \
101-
/repos/${{ github.repository }}/releases/generate-notes \
102-
-f target_commitish='main' \
103-
| jq -r '.body')"
104-
declare -r ESCAPED="${NOTES//$'\n'/'%0A'}"
105-
echo "notes=$ESCAPED" >> $GITHUB_OUTPUT
106-
107-
- name: Create github release
108-
if: steps.generate-release-notes.conclusion == 'success'
109-
uses: ncipollo/release-action@v1
110-
with:
111-
allowUpdates: true
112-
body: ${{ steps.notes.outputs.notes }}
113-
token: ${{ secrets.GITHUB_TOKEN }}
12+
uses: coditory/jvm-workflows/.github/workflows/build.yml@v1
13+
# Required to pass codecov token
14+
secrets: inherit
15+
with:
16+
java-version: 21
17+
build-command: ./gradlew build coverage

0 commit comments

Comments
 (0)