From ddec5b579e291b0e22f54c901d6ff2b7081f7b83 Mon Sep 17 00:00:00 2001 From: Bryan Rhee Date: Fri, 4 Nov 2022 19:13:38 +0900 Subject: [PATCH] misc: added release drafter --- .github/pull_request_template.md | 14 +++++++--- .github/release-drafter-config.yaml | 37 ++++++++++++++++++++++++++ .github/workflows/go.yaml | 15 ++++++----- .github/workflows/release-drafter.yaml | 13 +++++++++ Makefile | 2 +- 5 files changed, 69 insertions(+), 12 deletions(-) create mode 100644 .github/release-drafter-config.yaml create mode 100644 .github/workflows/release-drafter.yaml diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index b2451388..0b1ccdfa 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,7 +1,14 @@ - -- Major Reviewer: +## Effects + +- [ ] Soft update +- [ ] Breaking change +- [ ] Chain fork related + + +## Major Reviewer + + - ## Background @@ -10,7 +17,6 @@ - ## Checklist diff --git a/.github/release-drafter-config.yaml b/.github/release-drafter-config.yaml new file mode 100644 index 00000000..94ca09aa --- /dev/null +++ b/.github/release-drafter-config.yaml @@ -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 \ No newline at end of file diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 1d9a538d..bf5e5510 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -10,6 +10,10 @@ jobs: build: runs-on: ubuntu-latest + + strategy: + matrix: + go-version: [1.17.x, 1.18.x, 1.19.x] steps: - uses: actions/checkout@v3 @@ -17,15 +21,12 @@ jobs: - 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 diff --git a/.github/workflows/release-drafter.yaml b/.github/workflows/release-drafter.yaml new file mode 100644 index 00000000..3a53e336 --- /dev/null +++ b/.github/workflows/release-drafter.yaml @@ -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 diff --git a/Makefile b/Makefile index 3ff1b019..07d0bb67 100644 --- a/Makefile +++ b/Makefile @@ -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