chore: 🤖 Prepare for semantic release

pull/1580/head
Dominik Frantisek Bucik 2021-10-24 16:45:30 +02:00
parent fa96038938
commit ee6dd847ff
No known key found for this signature in database
GPG Key ID: 25014C8DB2E7E62D
6 changed files with 74 additions and 27 deletions

20
.github/workflows/checkstyle.xml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Checkstyle
on: pull_request
jobs:
checkstyle_job:
runs-on: ubuntu-latest
name: Checkstyle job
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run check style
uses: nikitasavinov/checkstyle-action@0.4.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: 'github-pr-review'
fail_on_error: true
level: 'error'
checkstyle_config: 'checkstyle.xml'

View File

@ -1,8 +1,7 @@
name: Maven build without running tests
name: Maven build with tests
on: [ push, pull_request ]
jobs:
test:
build:
name: JDK ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
@ -21,4 +20,22 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-jdk${{ matrix.java }}-
- name: Build with Maven
run: mvn -B clean install -DskipTests
run: mvn -B clean install
release:
name: Release
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm install && npx semantic-release

View File

@ -1,23 +0,0 @@
name: Maven build with tests
on: [ push, pull_request ]
jobs:
test:
name: JDK ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11' ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-jdk${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-jdk${{ matrix.java }}-
- name: Build with Maven
run: mvn -B clean install

16
.release.rc Normal file
View File

@ -0,0 +1,16 @@
{
"branches": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/exec", {
"prepareCmd": "mvn versions:set -DnewVersion=${nextRelease.version}; mvn versions:commit"
}],
"@semantic-release/changelog",
"@semantic-release/github",
["@semantic-release/git", {
"assets": ["CHANGELOG.md", "pom.xml", "openid-connect-server-webapp/pom.xml", "openid-connect-server/pom.xml"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}]
]
}

View File

@ -1,3 +1,9 @@
# MITREid Connect
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.
## Contribution
This repository uses [Conventional Commits](https://www.npmjs.com/package/@commitlint/config-conventional).
Any change that significantly changes behavior in a backward-incompatible way or requires a configuration change must be marked as BREAKING CHANGE.

11
package.json Normal file
View File

@ -0,0 +1,11 @@
{
"name": "OpenID-Connect-Java-Spring-Server",
"private": true,
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/exec": "^5.0.0",
"semantic-release": "^17.4.2"
}
}