Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

Commit ee6dd84

Browse files
author
Dominik Frantisek Bucik
committed
chore: 🤖 Prepare for semantic release
1 parent fa96038 commit ee6dd84

File tree

6 files changed

+74
-27
lines changed

6 files changed

+74
-27
lines changed

.github/workflows/checkstyle.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Checkstyle
2+
3+
on: pull_request
4+
5+
jobs:
6+
checkstyle_job:
7+
runs-on: ubuntu-latest
8+
name: Checkstyle job
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Run check style
13+
uses: nikitasavinov/[email protected]
14+
with:
15+
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
reporter: 'github-pr-review'
17+
fail_on_error: true
18+
level: 'error'
19+
checkstyle_config: 'checkstyle.xml'
20+

.github/workflows/maven-build.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
2-
name: Maven build without running tests
1+
name: Maven build with tests
32
on: [ push, pull_request ]
43
jobs:
5-
test:
4+
build:
65
name: JDK ${{ matrix.java }}
76
runs-on: ubuntu-latest
87
strategy:
@@ -21,4 +20,22 @@ jobs:
2120
restore-keys: |
2221
${{ runner.os }}-maven-jdk${{ matrix.java }}-
2322
- name: Build with Maven
24-
run: mvn -B clean install -DskipTests
23+
run: mvn -B clean install
24+
release:
25+
name: Release
26+
needs: [build]
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v2
31+
with:
32+
fetch-depth: 0
33+
- name: Setup Node.js
34+
uses: actions/setup-node@v1
35+
with:
36+
node-version: 14
37+
- name: Release
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
run: npm install && npx semantic-release
41+

.github/workflows/maven-tests.yml

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

.release.rc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"branches": ["master"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
["@semantic-release/exec", {
7+
"prepareCmd": "mvn versions:set -DnewVersion=${nextRelease.version}; mvn versions:commit"
8+
}],
9+
"@semantic-release/changelog",
10+
"@semantic-release/github",
11+
["@semantic-release/git", {
12+
"assets": ["CHANGELOG.md", "pom.xml", "openid-connect-server-webapp/pom.xml", "openid-connect-server/pom.xml"],
13+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
14+
}]
15+
]
16+
}

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
# MITREid Connect
22

33
This project has been forked from the [MITREid Connect repository](https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server). However, due to split between the paths we want to take with the project, we have decided to remove the fork relationship. All the original code will stay licensed to the original project. We would like to thank the developers of the original project for their work and wish them all the best in its continuation.
4+
5+
## Contribution
6+
7+
This repository uses [Conventional Commits](https://www.npmjs.com/package/@commitlint/config-conventional).
8+
Any change that significantly changes behavior in a backward-incompatible way or requires a configuration change must be marked as BREAKING CHANGE.
9+

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "OpenID-Connect-Java-Spring-Server",
3+
"private": true,
4+
"devDependencies": {
5+
"@semantic-release/changelog": "^5.0.1",
6+
"@semantic-release/git": "^9.0.0",
7+
"@semantic-release/exec": "^5.0.0",
8+
"semantic-release": "^17.4.2"
9+
}
10+
}
11+

0 commit comments

Comments
 (0)