forked from wiremock/wiremock
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use semantic-release to help with automatic releases. This will create semver releases. Therefore, the versions will differ more from the wiremock version. - Configure GitHub release formatting - Configure GitHub labeler - Reduce action runs on pushes - Adjust gradle build to use the semver - Add major and minor tags automatically
- Loading branch information
Showing
13 changed files
with
229 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
* text eol=lf | ||
# This file is broken and makes not sense as it is specified. | ||
# It breaks the usage of git on linux based systems. Ignore crlf files | ||
# which cannot be converted to lf. E.g. gradle wrapper conversion brakes | ||
# the validation. | ||
gradlew.bat -text | ||
*.png -text | ||
gradle-wrapper.jar -text | ||
sample-war/src/main/webapp/WEB-INF/wiremock/__files/mytest.json -text | ||
sample-war/src/main/webapp/WEB-INF/wiremock/mappings/mytest-mapping.json -text | ||
src/test/resources/not-found-diff-sample_large_xml_jre11_windows.txt -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bug: | ||
- head-branch: ['^fix'] | ||
enhancement: | ||
- head-branch: ['^feat'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
categories: | ||
- title: 🚨 Security Updates | ||
labels: | ||
- security | ||
- title: 🛠 Breaking Changes | ||
labels: | ||
- breaking | ||
- title: 📦 Dependency updates | ||
labels: | ||
- dependencies | ||
- title: 🐛 Bug fixes | ||
labels: | ||
- bug | ||
- title: 🎉 New Features | ||
labels: | ||
- enhancement | ||
- title: 🧪 Test Updates | ||
labels: | ||
- test | ||
- title: 📖 Documentation | ||
labels: | ||
- documentation | ||
- title: 🚧 Build Tools | ||
labels: | ||
- ci | ||
- build | ||
- title: ℹ️ Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ | |
name: Build and Test | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: "Pull Request Labeler" | ||
on: | ||
pull_request: | ||
branches-ignore: | ||
- dependabot/** | ||
|
||
jobs: | ||
labeler: | ||
name: Label Pull requests | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v5 | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
with: | ||
sync-labels: true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ | |
name: Validate Gradle wrapper | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
branches: [ "master" ] | ||
repositoryUrl: "[email protected]:holomekc/wiremock.git" | ||
tagFormat: ${version} | ||
plugins: | ||
# https://github.com/semantic-release/semantic-release/blob/master/docs/extending/plugins-list.md | ||
- "@semantic-release/commit-analyzer" | ||
- "@semantic-release/exec" | ||
- "@semantic-release/github" | ||
dryRun: false | ||
ci: true | ||
|
||
analyzeCommits: | ||
# https://github.com/semantic-release/commit-analyzer | ||
- path: "@semantic-release/commit-analyzer" | ||
preset: "conventionalcommits" | ||
# Default rules: https://github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-rules.js | ||
# releaseRules: | ||
# - type: "feat" | ||
# release: "patch" | ||
|
||
verifyRelease: | ||
- path: "@semantic-release/exec" | ||
verifyReleaseCmd: | | ||
#!/bin/bash | ||
echo "version=${nextRelease.version}" >> "$GITHUB_OUTPUT" || echo "Most likely no ci env. Skipping export of ${nextRelease.version}" | ||
generateNotes: false | ||
publish: false | ||
|
||
success: | ||
- path: "@semantic-release/exec" | ||
successCmd: | | ||
#!/bin/bash | ||
./release-tags.sh "${nextRelease.version}" | ||
- path: "@semantic-release/github" | ||
successComment: | | ||
:tada: This <%= issue.pull_request ? 'pull request' : 'issue' %> is included in version <%= '[' + nextRelease.version + '](https://github.com/holomekc/wiremock/releases/tag/' + nextRelease.version + ')' %> | ||
fail: | ||
- path: "@semantic-release/github" | ||
labels: false | ||
assignees: | ||
- "@holomekc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM wiremock/wiremock:latest-alpine | ||
FROM wiremock/wiremock:3.5.2-1-alpine | ||
|
||
LABEL maintainer="Christopher Holomek <[email protected]>" | ||
LABEL org.label-schema.name="wiremock-gui" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
major=$(echo "${1}" | cut -d. -f1) | ||
minor=$(echo "${1}" | cut -d. -f2) | ||
|
||
echo "Update minor tag: ${major}.${minor}" | ||
git tag "${major}.${minor}" --force | ||
git push origin "${major}.${minor}" --force | ||
|
||
echo "Update major tag: ${major}" | ||
git tag "${major}" --force | ||
git push origin "${major}" --force |