Maintain actions.
This commit is contained in:
parent
d379becb63
commit
2a31de933d
10 changed files with 107 additions and 46 deletions
6
.github/CODEOWNERS
vendored
6
.github/CODEOWNERS
vendored
|
@ -1,4 +1,2 @@
|
||||||
@sschnabe
|
# https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
|
||||||
@wistefan
|
* @sschnabe @rpahli @fabian-schlegel
|
||||||
@rpahli
|
|
||||||
@fabian-schlegel
|
|
||||||
|
|
4
.github/dependabot.yml
vendored
4
.github/dependabot.yml
vendored
|
@ -2,6 +2,8 @@ version: 2
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: maven
|
- package-ecosystem: maven
|
||||||
directory: /
|
directory: /
|
||||||
|
open-pull-requests-limit: 1
|
||||||
|
rebase-strategy: auto
|
||||||
schedule:
|
schedule:
|
||||||
interval: daily
|
interval: daily
|
||||||
ignore:
|
ignore:
|
||||||
|
@ -9,5 +11,7 @@ updates:
|
||||||
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
update-types: ["version-update:semver-major", "version-update:semver-minor"]
|
||||||
- package-ecosystem: github-actions
|
- package-ecosystem: github-actions
|
||||||
directory: /
|
directory: /
|
||||||
|
open-pull-requests-limit: 1
|
||||||
|
rebase-strategy: auto
|
||||||
schedule:
|
schedule:
|
||||||
interval: daily
|
interval: daily
|
||||||
|
|
7
.github/workflows/codeql.yaml
vendored
7
.github/workflows/codeql.yaml
vendored
|
@ -2,10 +2,7 @@ name: CodeQL
|
||||||
|
|
||||||
"on":
|
"on":
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
push:
|
pull_request: {}
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
@ -17,7 +14,7 @@ jobs:
|
||||||
actions: read
|
actions: read
|
||||||
contents: read
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2.4.0
|
||||||
- uses: github/codeql-action/init@v1
|
- uses: github/codeql-action/init@v1
|
||||||
with:
|
with:
|
||||||
languages: java
|
languages: java
|
||||||
|
|
22
.github/workflows/dependabot.yaml
vendored
Normal file
22
.github/workflows/dependabot.yaml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: Dependabot
|
||||||
|
|
||||||
|
"on": pull_request_target
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto-merge:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
||||||
|
steps:
|
||||||
|
- uses: dependabot/fetch-metadata@v1.1.1
|
||||||
|
id: metadata
|
||||||
|
with:
|
||||||
|
github-token: "${{ secrets.GIT_ACTION_TOKEN }}"
|
||||||
|
- run: gh pr review --approve "$PR_URL"
|
||||||
|
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
|
||||||
|
env:
|
||||||
|
PR_URL: ${{github.event.pull_request.html_url}}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GIT_ACTION_TOKEN }}
|
||||||
|
- run: gh pr merge --auto "$PR_URL"
|
||||||
|
env:
|
||||||
|
PR_URL: ${{github.event.pull_request.html_url}}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GIT_ACTION_TOKEN }}
|
26
.github/workflows/lint.yaml
vendored
Normal file
26
.github/workflows/lint.yaml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: Lint
|
||||||
|
|
||||||
|
"on":
|
||||||
|
workflow_dispatch: {}
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
yaml:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.4.0
|
||||||
|
- uses: ibiqlik/action-yamllint@v3.1.0
|
||||||
|
with:
|
||||||
|
format: colored
|
||||||
|
strict: true
|
||||||
|
|
||||||
|
markdown:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.4.0
|
||||||
|
- uses: avto-dev/markdown-lint@v1.5.0
|
||||||
|
with:
|
||||||
|
args: /github/workspace
|
26
.github/workflows/pullrequest.yaml
vendored
Normal file
26
.github/workflows/pullrequest.yaml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: PullRequest
|
||||||
|
|
||||||
|
"on": pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.4.0
|
||||||
|
- uses: actions/setup-java@v3.0.0
|
||||||
|
with:
|
||||||
|
distribution: temurin
|
||||||
|
java-version: 11
|
||||||
|
cache: maven
|
||||||
|
- run: mvn -B dependency:go-offline
|
||||||
|
- run: mvn -B verify
|
||||||
|
- uses: dorny/test-reporter@v1.5.0
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: surefire
|
||||||
|
path: '**/target/surefire-reports/*.xml,**/target/invoker-reports/*.xml'
|
||||||
|
reporter: java-junit
|
||||||
|
list-suites: failed
|
||||||
|
list-tests: failed
|
||||||
|
fail-on-error: false
|
9
.github/workflows/release.yaml
vendored
9
.github/workflows/release.yaml
vendored
|
@ -1,22 +1,21 @@
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
"on":
|
"on": workflow_dispatch
|
||||||
workflow_dispatch: {}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2.4.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GIT_ACTION_TOKEN }}
|
token: ${{ secrets.GIT_ACTION_TOKEN }}
|
||||||
- uses: crazy-max/ghaction-import-gpg@v4
|
- uses: crazy-max/ghaction-import-gpg@v4.1.0
|
||||||
with:
|
with:
|
||||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
||||||
git_user_signingkey: true
|
git_user_signingkey: true
|
||||||
git_commit_gpgsign: true
|
git_commit_gpgsign: true
|
||||||
- uses: actions/setup-java@v2
|
- uses: actions/setup-java@v3.0.0
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
|
32
.github/workflows/snapshot.yaml
vendored
32
.github/workflows/snapshot.yaml
vendored
|
@ -2,32 +2,16 @@ name: Snapshot
|
||||||
|
|
||||||
"on":
|
"on":
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
push: {}
|
push:
|
||||||
|
branches: [main]
|
||||||
|
paths-ignore: ['**.md']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
yaml:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: ibiqlik/action-yamllint@v3
|
|
||||||
with:
|
|
||||||
format: colored
|
|
||||||
strict: true
|
|
||||||
|
|
||||||
markdown:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: docker://avtodev/markdown-lint:v1
|
|
||||||
with:
|
|
||||||
args: /github/workspace
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2.4.0
|
||||||
- uses: actions/setup-java@v2
|
- uses: actions/setup-java@v3.0.0
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
@ -36,14 +20,11 @@ jobs:
|
||||||
server-username: SERVER_USERNAME
|
server-username: SERVER_USERNAME
|
||||||
server-password: SERVER_PASSWORD
|
server-password: SERVER_PASSWORD
|
||||||
- run: mvn -B dependency:go-offline
|
- run: mvn -B dependency:go-offline
|
||||||
- run: mvn -B verify
|
|
||||||
if: github.ref != 'refs/heads/main'
|
|
||||||
- run: mvn -B deploy
|
- run: mvn -B deploy
|
||||||
if: github.ref == 'refs/heads/main'
|
|
||||||
env:
|
env:
|
||||||
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
||||||
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
||||||
- uses: dorny/test-reporter@v1
|
- uses: dorny/test-reporter@v1.5.0
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: surefire
|
name: surefire
|
||||||
|
@ -51,3 +32,4 @@ jobs:
|
||||||
reporter: java-junit
|
reporter: java-junit
|
||||||
list-suites: failed
|
list-suites: failed
|
||||||
list-tests: failed
|
list-tests: failed
|
||||||
|
fail-on-error: false
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
[](http://www.apache.org/licenses/)
|
[](http://www.apache.org/licenses/)
|
||||||
[](https://search.maven.org/search?q=g:%22io.kokuwa.micronaut%22%20AND%20a:%22micronaut-logging%22)
|
[](https://search.maven.org/search?q=g:%22io.kokuwa.micronaut%22%20AND%20a:%22micronaut-logging%22)
|
||||||
[](https://github.com/kokuwaio/micronaut-logging/actions/workflows/snapshot.yaml)
|
[](https://github.com/kokuwaio/micronaut-logging/actions/workflows/snapshot.yaml?label=Build)
|
||||||
|
[](https://github.com/kokuwaio/micronaut-logging/actions/workflows/lint.yaml?label=Lint)
|
||||||
|
|
||||||
Include in your `pom.xml`:
|
Include in your `pom.xml`:
|
||||||
|
|
||||||
|
|
18
pom.xml
18
pom.xml
|
@ -87,26 +87,27 @@
|
||||||
|
|
||||||
<version.org.apache.maven.plugins.checkstyle>3.1.2</version.org.apache.maven.plugins.checkstyle>
|
<version.org.apache.maven.plugins.checkstyle>3.1.2</version.org.apache.maven.plugins.checkstyle>
|
||||||
<version.org.apache.maven.plugins.clean>3.1.0</version.org.apache.maven.plugins.clean>
|
<version.org.apache.maven.plugins.clean>3.1.0</version.org.apache.maven.plugins.clean>
|
||||||
<version.org.apache.maven.plugins.compiler>3.9.0</version.org.apache.maven.plugins.compiler>
|
<version.org.apache.maven.plugins.compiler>3.10.0</version.org.apache.maven.plugins.compiler>
|
||||||
|
<version.org.apache.maven.plugins.dependency_>3.2.0</version.org.apache.maven.plugins.dependency_>
|
||||||
<version.org.apache.maven.plugins.deploy>3.0.0-M2</version.org.apache.maven.plugins.deploy>
|
<version.org.apache.maven.plugins.deploy>3.0.0-M2</version.org.apache.maven.plugins.deploy>
|
||||||
<version.org.apache.maven.plugins.gpg>3.0.1</version.org.apache.maven.plugins.gpg>
|
<version.org.apache.maven.plugins.gpg>3.0.1</version.org.apache.maven.plugins.gpg>
|
||||||
<version.org.apache.maven.plugins.install>3.0.0-M1</version.org.apache.maven.plugins.install>
|
<version.org.apache.maven.plugins.install>3.0.0-M1</version.org.apache.maven.plugins.install>
|
||||||
<version.org.apache.maven.plugins.javadoc>3.3.1</version.org.apache.maven.plugins.javadoc>
|
<version.org.apache.maven.plugins.javadoc>3.3.2</version.org.apache.maven.plugins.javadoc>
|
||||||
<version.org.apache.maven.plugins.jar>3.2.2</version.org.apache.maven.plugins.jar>
|
<version.org.apache.maven.plugins.jar>3.2.2</version.org.apache.maven.plugins.jar>
|
||||||
<version.org.apache.maven.plugins.release>3.0.0-M5</version.org.apache.maven.plugins.release>
|
<version.org.apache.maven.plugins.release>3.0.0-M5</version.org.apache.maven.plugins.release>
|
||||||
<version.org.apache.maven.plugins.resources>3.2.0</version.org.apache.maven.plugins.resources>
|
<version.org.apache.maven.plugins.resources>3.2.0</version.org.apache.maven.plugins.resources>
|
||||||
<version.org.apache.maven.plugins.source>3.2.1</version.org.apache.maven.plugins.source>
|
<version.org.apache.maven.plugins.source>3.2.1</version.org.apache.maven.plugins.source>
|
||||||
<version.org.apache.maven.plugins.surefire>3.0.0-M5</version.org.apache.maven.plugins.surefire>
|
<version.org.apache.maven.plugins.surefire>3.0.0-M5</version.org.apache.maven.plugins.surefire>
|
||||||
<version.org.codehaus.mojo.tidy>1.1.0</version.org.codehaus.mojo.tidy>
|
<version.org.codehaus.mojo.tidy>1.1.0</version.org.codehaus.mojo.tidy>
|
||||||
<version.org.sonatype.plugins.nexus-staging>1.6.8</version.org.sonatype.plugins.nexus-staging>
|
<version.org.sonatype.plugins.nexus-staging>1.6.12</version.org.sonatype.plugins.nexus-staging>
|
||||||
<version.com.puppycrawl.tools.checkstyle>9.3</version.com.puppycrawl.tools.checkstyle>
|
<version.com.puppycrawl.tools.checkstyle>10.0</version.com.puppycrawl.tools.checkstyle>
|
||||||
<version.io.kokuwa.checkstyle>0.5.6</version.io.kokuwa.checkstyle>
|
<version.io.kokuwa.checkstyle>0.5.5</version.io.kokuwa.checkstyle>
|
||||||
|
|
||||||
<!-- dependencies -->
|
<!-- dependencies -->
|
||||||
|
|
||||||
<version.ch.qos.logback>1.2.10</version.ch.qos.logback>
|
<version.ch.qos.logback>1.2.10</version.ch.qos.logback>
|
||||||
<version.ch.qos.logback.contrib>0.1.5</version.ch.qos.logback.contrib>
|
<version.ch.qos.logback.contrib>0.1.5</version.ch.qos.logback.contrib>
|
||||||
<version.io.micronaut>3.3.0</version.io.micronaut>
|
<version.io.micronaut>3.3.4</version.io.micronaut>
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
@ -238,6 +239,11 @@
|
||||||
</annotationProcessorPaths>
|
</annotationProcessorPaths>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>${version.org.apache.maven.plugins.dependency_}</version>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue