Skip to content

Commit c6a6f02

Browse files
committed
feat: updates to void and the release process
1 parent dea71b1 commit c6a6f02

28 files changed

+877
-535
lines changed

.cz.yaml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
commitizen:
2+
name: cz_customize
3+
customize:
4+
message_template: '{{change_type}}:{% if show_message %} {{message}}{% endif %}'
5+
example: 'feature: this feature enable customize through config file'
6+
schema: '<type>: <body>'
7+
schema_pattern: "(feature|bug fix):(\\s.*)"
8+
bump_pattern: '^(break|new|fix|hotfix)'
9+
commit_parser: "^(?P<change_type>feature|bug fix):\\s(?P<message>.*)?"
10+
changelog_pattern: '^(feature|bug fix)?(!)?'
11+
change_type_map:
12+
feature: Feat
13+
bug fix: Fix
14+
bump_map:
15+
break: MAJOR
16+
new: MINOR
17+
fix: PATCH
18+
hotfix: PATCH
19+
change_type_order: ['BREAKING CHANGE', 'feat', 'fix', 'refactor', 'perf']
20+
info_path: cz_customize_info.txt
21+
info: This is customized info
22+
questions:
23+
- type: list
24+
name: change_type
25+
choices:
26+
- value: feat
27+
name: 'feat: A new feature.'
28+
- value: fix
29+
name: 'fix: A bug fix.'
30+
- value: refactor
31+
name: 'refactor: A code change that neither fixes a bug nor adds a feature.'
32+
- value: perf
33+
name: 'perf: A code change that improves performance.'
34+
- value: test
35+
name: 'test: Adding missing tests or correcting existing tests.'
36+
- value: docs
37+
name: 'docs: Documentation only changes.'
38+
- value: chore
39+
name: "chore: Changes that don't modify src or test files."
40+
- value: cicd
41+
name: 'cicd: Changes to CI/CD configuration files and scripts.'
42+
message: Select the type of change you are committing
43+
- type: input
44+
name: message
45+
message: Body.
46+
- type: confirm
47+
name: show_message
48+
message: Do you want to add body message in commit?

.drone.yml

-56
This file was deleted.

.env

Whitespace-only changes.

.github/dependabot.yml

+42-42
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
version: 2
22
updates:
3-
- package-ecosystem: gomod
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
labels:
8-
- "automerge"
9-
- package-ecosystem: "github-actions"
10-
directory: "/"
11-
schedule:
12-
interval: "daily"
13-
labels:
14-
- "automerge"
15-
- package-ecosystem: "docker"
16-
directory: "/"
17-
schedule:
18-
interval: "daily"
19-
labels:
20-
- "automerge"
21-
- package-ecosystem: "npm"
22-
directory: "/"
23-
schedule:
24-
interval: "daily"
25-
labels:
26-
- "automerge"
27-
- package-ecosystem: "pip"
28-
directory: "/"
29-
schedule:
30-
interval: "daily"
31-
labels:
32-
- "automerge"
33-
- package-ecosystem: "cargo"
34-
directory: "/"
35-
schedule:
36-
interval: "daily"
37-
labels:
38-
- "automerge"
39-
- package-ecosystem: "terraform"
40-
directory: "/"
41-
schedule:
42-
interval: "daily"
43-
labels:
44-
- "automerge"
3+
- package-ecosystem: gomod
4+
directory: '/'
5+
schedule:
6+
interval: daily
7+
labels:
8+
- 'automerge'
9+
- package-ecosystem: 'github-actions'
10+
directory: '/'
11+
schedule:
12+
interval: 'daily'
13+
labels:
14+
- 'automerge'
15+
- package-ecosystem: 'docker'
16+
directory: '/'
17+
schedule:
18+
interval: 'daily'
19+
labels:
20+
- 'automerge'
21+
- package-ecosystem: 'npm'
22+
directory: '/'
23+
schedule:
24+
interval: 'daily'
25+
labels:
26+
- 'automerge'
27+
- package-ecosystem: 'pip'
28+
directory: '/'
29+
schedule:
30+
interval: 'daily'
31+
labels:
32+
- 'automerge'
33+
- package-ecosystem: 'cargo'
34+
directory: '/'
35+
schedule:
36+
interval: 'daily'
37+
labels:
38+
- 'automerge'
39+
- package-ecosystem: 'terraform'
40+
directory: '/'
41+
schedule:
42+
interval: 'daily'
43+
labels:
44+
- 'automerge'

.github/workflows/automerge.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
steps:
1313
- id: automerge
1414
name: automerge
15-
uses: "pascalgn/[email protected]"
15+
uses: 'pascalgn/[email protected]'
1616
env:
17-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
17+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
1818
MERGE_METHOD: squash
1919
MERGE_LABELS: automerge

.github/workflows/build.yml

+21-41
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,25 @@
1-
name: Build & Test
1+
name: Build
22

3-
# this is triggered on push to the repository
4-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: write
11+
deployments: write
12+
packages: write
13+
pages: write
14+
15+
env:
16+
GOPRIVATE: ${{ vars.GOPRIVATE }}
17+
GH_ACCESS_TOKEN: ${{ secrets.GH_PAT }}
18+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_TOKEN }}
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
521

622
jobs:
723
build:
8-
name: "Build"
9-
strategy:
10-
matrix:
11-
go-version: [1.20.x]
12-
platform: [ubuntu-latest, macos-latest, windows-latest]
13-
fail-fast: true
14-
runs-on: ${{ matrix.platform }}
15-
steps:
16-
- name: Install Go
17-
uses: actions/setup-go@v5
18-
with:
19-
go-version: ${{ matrix.go-version }}
20-
- name: Checkout code
21-
uses: actions/checkout@v4
22-
- name: Build
23-
run: go build ./...
24-
test:
25-
name: "Unit Tests"
26-
needs: [build]
27-
strategy:
28-
matrix:
29-
platform: [ubuntu-latest, macos-latest, windows-latest]
30-
fail-fast: true
31-
runs-on: ${{ matrix.platform }}
32-
steps:
33-
- name: Checkout code
34-
uses: actions/checkout@v4
35-
- name: Install Go
36-
uses: actions/setup-go@v5
37-
with:
38-
go-version: 1.20.x
39-
- name: Test
40-
run: go test -failfast ./... -race -coverprofile=coverage.txt -covermode=atomic
41-
- name: Push Coverage to codecov.io
42-
uses: codecov/[email protected]
43-
with:
44-
token: ${{ secrets.CODECOV_TOKEN }}
45-
file: ./coverage.txt
24+
uses: devnw/workflows/.github/workflows/make-ci.yml@main
25+
secrets: inherit # pragma: allowlist secret

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
void
12
.direnv/
23
*cweb.log
34
*.tmp
@@ -12,7 +13,7 @@ dist/
1213
bin/
1314
ui/public/
1415
ui/build/
15-
ui/node_modules/
16+
node_modules/
1617

1718
# Removing Vendor
1819
vendor/

0 commit comments

Comments
 (0)