Skip to content

Commit

Permalink
fix: add release-please and husky
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnichols committed Dec 22, 2022
1 parent d727451 commit 5043f41
Show file tree
Hide file tree
Showing 15 changed files with 5,645 additions and 38 deletions.
6 changes: 6 additions & 0 deletions .github/src_filters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
src:
- '**/src/**'
- '**/build.gradle'
- '**/gradle.lockfile'
- '**/gradle.settings'
- '.github/**'
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
workflow_dispatch:
inputs:
force:
default: false
description: Force all steps (ignore changes)
required: false
type: boolean

name: ci

jobs:
ci:
permissions: read-all
uses: mxenabled/path-tools/.github/workflows/ci.yml@master
with:
force: ${{ inputs.force != '' && inputs.force }}
java-version: '8'
34 changes: 0 additions & 34 deletions .github/workflows/gradle.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
workflow_dispatch:
inputs:
dry-run:
default: true
description: Dry-Run
required: false
type: boolean

name: publish

jobs:
publish:
permissions: read-all
uses: mxenabled/path-tools/.github/workflows/publish.yml@master
with:
dry-run: ${{ inputs.dry-run }}
secrets:
OSSRH_USERNAME: not_published
OSSRH_TOKEN: not_published
GPG_SIGNING_KEY_BASE64: not_published
GPG_SIGNING_PASSPHRASE: not_published
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
workflow_dispatch:
push:
branches:
- master

name: release

jobs:
release:
permissions: write-all
uses: mxenabled/path-tools/.github/workflows/release_manifest.yml@master
with:
dry-run: true
secrets:
OSSRH_USERNAME: not_published
OSSRH_TOKEN: not_published
GPG_SIGNING_KEY_BASE64: not_published
GPG_SIGNING_PASSPHRASE: not_published
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -228,5 +228,5 @@ gradle-app.setting
# End of https://www.toptal.com/developers/gitignore/api/macos,windows,gradle,java,kotlin,intellij

.coppuccino

.dependency-check-data
.dependency-check-data
node_modules
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.0.1"
}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ Vogue is a gradle plugin that reads and processes reports generated by the [grad

#### Gradle

<!-- x-release-please-start-version -->
_build.gradle_:
```groovy
plugins {
id: "com.github.mxenabled.vogue" version "x.x.x"
id: "com.github.mxenabled.vogue" version "1.0.1"
}
allprojects {
Expand All @@ -35,6 +36,7 @@ pluginManagement {
}
}
```
<!-- x-release-please-end -->

## Configuration

Expand Down
8 changes: 8 additions & 0 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /bin/sh

if ! [ -x "$(command -v npm)" ]; then
echo 'Error: npm is not installed.' >&2
exit 1
fi

npm install
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group "com.mx.vogue"
version "1.0.0"
version "1.0.1" // x-release-please-version
sourceCompatibility = 1.8

repositories {
Expand Down
35 changes: 35 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = {
parserPreset: 'conventional-changelog-conventionalcommits',
rules: {
'body-leading-blank': [1, 'always'],
'body-max-line-length': [2, 'always', 100],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100],
'header-max-length': [2, 'always', 100],
'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'build',
'chore',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
],
],
},
};
Loading

0 comments on commit 5043f41

Please sign in to comment.