Skip to content

Commit

Permalink
misc: added release drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
psy2848048 committed Nov 4, 2022
1 parent fbde156 commit ddec5b5
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 12 deletions.
14 changes: 10 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
<!-- Optional -->
- Major Reviewer:
## Effects

- [ ] Soft update
- [ ] Breaking change
- [ ] Chain fork related

<!-- If internal PR & if it is needed to check from a specific person, please mention. Or you may delete it -->
## Major Reviewer

<!-- List them -->

<!-- Optional -->
## Background
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->
Expand All @@ -10,7 +17,6 @@
<!--- Provide a summary of your changes. -->
<!--- It's a good idea to include the issue you are trying to solve and how to fix it. -->


<!--- Add More if you need. -->

## Checklist
Expand Down
37 changes: 37 additions & 0 deletions .github/release-drafter-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
label: 'enhancement'
label: 'feature'

- title: '⚙️ Fixes'
label: 'fix'
label: 'bug'
label: 'hotfix'

- title: 'Dependency upgrades (Tendermint, Cosmos SDK, EvmOS, etc)'
label: 'dependency'

change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## EFFECTS
- [ ] Soft update
- [ ] Chain fork related
## CHANGES
$CHANGES
15 changes: 8 additions & 7 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,23 @@ jobs:

build:
runs-on: ubuntu-latest

strategy:
matrix:
go-version: [1.17.x, 1.18.x, 1.19.x]

steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout=5m --enable=unparam --enable=misspell --enable=prealloc
go-version: ${{ matrix.go-version }}

- name: Protogen test
run: make proto-gen

- name: Test
run: make test
run: |
go mod tidy
make test
13 changes: 13 additions & 0 deletions .github/workflows/release-drafter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Release Drafter
on:
push:
branches: [ "main", "cube", "hypercube", "tesseract" ]

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5

with:
config-name: release-drafter-config.yml
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ install: go.sum
go install -mod=readonly $(BUILD_FLAGS) ./cmd/xplad

.PHONY: test
test:
test: go.sum
go test -short ./...

go.sum: go.mod
Expand Down

0 comments on commit ddec5b5

Please sign in to comment.