22 Commits

Author SHA1 Message Date
Julian Strobl
ee4089f847
Remove planetmint-go from API endpoints (#287)
* feat: let the ci check if there are malformed api endpoints

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-01-16 10:39:32 +01:00
Julian Strobl
99031fb857
lib: add initial e2e tests (#255)
* fix: only increase counter if broadcast was successful

Otherwise we will get account and sequence numbers mismatches.

* test: add initial e2e tests for `lib/`

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-01-03 13:08:13 +01:00
Julian Strobl
48b3145aaa
refactor: github audit workflow (#251)
Execute jobs in parallel to speed up the workflow.

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2024-01-03 09:24:17 +01:00
Julian Strobl
a1d6923ca3
Support releasing from different branch (#249)
* ci: support releasing from different branch
* fix: git tags are not fetched

This preveted to detect if a `LIB_TAG` is already there.

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-12-22 11:25:32 +01:00
Julian Strobl
363d82d344
[ci] Improve staticcheck setup (#221)
* [staticcheck] Fix comments on exported functions and structs

* [ci] Improve staticcheck setup

- Add global staticcheck.conf file
- Ignore: at least one file in a package should have a package comment (ST1000)
- Ignore deprecation warnings. They are reported by golangci-lint and
  there we have a proper way to exclude generated files.

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-12-11 11:41:45 +01:00
Julian Strobl
0455176123
[ci] Pin ignite version to v0.27.1 (#213)
Version v28.0.0 was released and breaks the pipeline.

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-12-06 11:13:04 +01:00
Julian Strobl
d5339f331c
[ci] Add coverage report (#204)
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-29 08:08:23 +01:00
Julian Strobl
6ef5e3c803
[ci] Create lib git tag for go get during release (#182)
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-16 11:04:46 +01:00
Julian Strobl
e36eb6c2a1
Add golangci-lint run to lib/ (#181)
* [lib] Add .golangci.yaml as symlink

https://github.com/golang/go/wiki/Modules#faqs--multi-module-repositories

* [golangci-lint] Change `nakedret` settings

* [linter] Can be replaced with faster hex.EncodeToString (perfsprint)

* [linter] Fix too many quotes

* [ci] Add `golangci-lint run` of `lib/`

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-11-16 09:16:56 +01:00
Julian Strobl
bed03197b5
[ci] Add forbidigo to golangci-lint (#160)
* Move setup into config file
* Add forbidigo to default linters

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-10-20 13:31:16 +02:00
Julian Strobl
126d59cff9 [ci] Check generated files
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-10-16 13:17:10 +02:00
Lorenz Herzberger
d32c2c71cf
add dao lint rule to audit workflow
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
2023-09-05 12:21:06 +02:00
Julian Strobl
e33fd74d64
[ci] golangci-lint action needs Go 1.20
Error:

* module requires Go 1.20

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-08-22 14:44:42 +02:00
Julian Strobl
fdfbe9da67
[ci] Add release pipeline
// Closes #56

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-08-16 14:05:09 +02:00
Julian Strobl
a6b862860a
[ci] Check for proper code formatting
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-07-20 09:08:55 +02:00
Julian Strobl
6037c6009c
[ci] Add lint-ignore comment to generated files
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-07-20 09:08:54 +02:00
Julian Strobl
359cbbc5d9
[lint] Switch to golangci-lint and fix errors
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-07-19 16:34:42 +02:00
Julian Strobl
6a4dec59cc
[audit] Remove continue-on-error on staticcheck
Let the pipeline fail if there is a staticcheck finding.

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-07-07 10:37:27 +02:00
Julian Strobl
3bd2befbf0
[CI] Add initial audit.yaml
https://www.alexedwards.net/blog/ci-with-go-and-github-actions

// Closes #18

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-07-04 14:39:54 +02:00
Julian Strobl
eca002355f
[CI] Remove release.yml for now
- Code generation using protoc is only supported by Ignite CLI v0.26.1
or older

Wait til https://github.com/ignite/cli/pull/3476 is released

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-07-04 10:08:16 +02:00
Julian Strobl
58d6352c68
[sonar] Add initial setup
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-07-04 09:19:29 +02:00
Julian Strobl
7810d08780
Add initial generated code
```
$ ignite version
Ignite CLI version:             v0.27.1
Cosmos SDK version:             v0.47.3

$ ignite scaffold chain planetmint-go --address-prefix plmt --no-module
```

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
2023-06-27 13:15:02 +02:00