Skip to content

Commit 27f2623

Browse files
committed
GitHub Actions
1 parent bd47cd9 commit 27f2623

File tree

3 files changed

+115
-0
lines changed

3 files changed

+115
-0
lines changed

.github/pull_request_template.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Description
2+
3+
*Please add a description here. This will become the commit message of the merge request later.*
4+
5+
## Definition of Done Checklist
6+
7+
- Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
8+
- Please make sure all these things are done and tick the boxes
9+
10+
```[tasklist]
11+
# Reviewer
12+
- [ ] Code contains useful comments
13+
- [ ] (Integration-)Test cases added
14+
- [ ] Documentation added or updated
15+
- [ ] Changelog updated
16+
```
17+
18+
```[tasklist]
19+
# Acceptance
20+
- [ ] Proper release label has been added
21+
```
22+

.github/workflows/maven.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
---
4+
name: Java CI with Maven
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
- "renovate/**"
11+
tags:
12+
- "**"
13+
pull_request:
14+
merge_group:
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
22+
- name: Set up JDK 11
23+
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # tag=v4.0.0
24+
with:
25+
java-version: '11'
26+
distribution: 'temurin'
27+
cache: maven
28+
- name: Build with Maven
29+
run: mvn -B verify
30+
- name: Update dependency graph
31+
uses: advanced-security/maven-dependency-submission-action@ed72a3242c5331913886b41ca9ea66c9195ebdaa # tag=v4.0.0

.github/workflows/reviewdog.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
name: reviewdog
3+
on:
4+
pull_request
5+
6+
permissions:
7+
contents: read
8+
checks: write
9+
pull-requests: write
10+
issues: write
11+
12+
jobs:
13+
actionlint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
17+
- uses: reviewdog/action-actionlint@6a38513dd4d2e818798c5c73d0870adbb82de4a4 # v1.41.0
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
detect-secrets:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
25+
- uses: reviewdog/action-detect-secrets@d26ae2fc9ee158d7cccb06ed5734d84a29420fed # tag=v0.16.1
26+
with:
27+
github_token: ${{ secrets.github_token }}
28+
29+
flake8:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
33+
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # tag=v5.0.0
34+
with:
35+
python-version: "3.9"
36+
- uses: reviewdog/action-flake8@51c2708ac3e9463b4d27d0ba7d9e3ded608a6ad3 # tag=v3.8.0
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
40+
markdownlint:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
44+
- uses: reviewdog/action-markdownlint@6e02140816b5fcc7295ea7ae2a664af18190ff29 # tag=v0.14.0
45+
with:
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
48+
shellcheck:
49+
runs-on: ubuntu-latest
50+
steps:
51+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
52+
- uses: reviewdog/action-shellcheck@96fa305c16b0f9cc9b093af22dcd09de1c8f1c2d # tag=v1.19.0
53+
with:
54+
github_token: ${{ secrets.GITHUB_TOKEN }}
55+
56+
yamllint:
57+
runs-on: ubuntu-latest
58+
steps:
59+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
60+
- uses: reviewdog/action-yamllint@c247c50238c06b3127fc83dc3012b5f056ef8ff9 # tag=v1.10.0
61+
with:
62+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)