Skip to content

Commit

Permalink
Merge branch 'main' into fix/ibc-guides
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Sep 5, 2024
2 parents fd0308b + 41ec830 commit 3576fc2
Show file tree
Hide file tree
Showing 31 changed files with 730 additions and 79 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/md-link-checker.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Check Markdown links
on:
pull_request:
paths:
- "**.*.md"
push:
paths:
- "**.*.md"
branches:
- main
- release/*
Expand All @@ -19,13 +15,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6.1.2
with:
PATTERNS: |
**/*.md
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.13
if: env.GIT_DIFF
with:
folder-path: "."
use-verbose-mode: 'yes'
config-file: '.github/workflows/md-link-checker-config.json'
use-verbose-mode: "yes"
config-file: ".github/workflows/md-link-checker-config.json"
30 changes: 30 additions & 0 deletions .github/workflows/test-cov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test Coverage

on:
schedule:
- cron: "0 0 * * *" # every day at midnight

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
runs-on: $ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main # change in release branches

- uses: actions/setup-go@v5
with:
go-version: "stable"

- run: ./scripts/test-coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.txt
fail_ci_if_error: false
verbose: true
11 changes: 0 additions & 11 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,12 @@ jobs:
test-path: ${{fromJson(needs.pre-test.outputs.matrix)}}
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6.1.2
with:
PATTERNS: |
**/*.go
**/*.plush
**/*.tpl
go.mod
go.sum
**/testdata/**

- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: "stable"

- name: Run Integration Tests
if: env.GIT_DIFF
env:
GOTOOLCHAIN: local+path
GOSUMDB: off
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,13 @@ jobs:
timeout-minutes: 6
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6.1.2
with:
PATTERNS: |
**/*.go
**/*.plush
go.mod
go.sum

- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version-file: go.mod
cache: false

- uses: golangci/golangci-lint-action@v6
if: env.GIT_DIFF
with:
version: v1.60.3
install-mode: goinstall
Expand Down
22 changes: 1 addition & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,9 @@ jobs:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6.1.2
with:
PATTERNS: |
**/*.go
**/*.plush
go.mod
go.sum
**/testdata/**

- uses: actions/setup-go@v5
if: env.GIT_DIFF
with:
go-version: "stable"
cache: true
cache-dependency-path: go.sum

- run: ./scripts/test-coverage
if: env.GIT_DIFF

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: env.GIT_DIFF
with:
file: ./coverage.txt
fail_ci_if_error: false
verbose: true
- run: ./scripts/test
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
- [#4111](https://github.com/ignite/cli/pull/4111) Remove vuex generation
- [#4113](https://github.com/ignite/cli/pull/4113) Generate chain config documentation automatically
- [#4131](https://github.com/ignite/cli/pull/4131) Support `bytes` as data type in the `scaffold` commands
- [#4297](https://github.com/ignite/cli/pull/4297) Add in-place testnet creation command for apps.
- [#4300](https://github.com/ignite/cli/pull/4300) Only panics the module in the most top function level
- [#4327](https://github.com/ignite/cli/pull/4327) Use the TxConfig from simState instead create a new one
- [#4326](https://github.com/ignite/cli/pull/4326) fAdd `buf.build` version to `ignite version` command

### Changes
Expand Down
70 changes: 70 additions & 0 deletions docs/docs/03-CLI-Commands/01-cli-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ To get started, create a blockchain:
* [ignite relayer](#ignite-relayer) - Connect blockchains with an IBC relayer
* [ignite scaffold](#ignite-scaffold) - Create a new blockchain, module, message, query, and more
* [ignite version](#ignite-version) - Print the current build information
* [ignite testnet](#ignite-testnet) - Start a testnet local


## ignite account
Expand Down Expand Up @@ -3658,3 +3659,72 @@ ignite version [flags]

* [ignite](#ignite) - Ignite CLI offers everything you need to scaffold, test, build, and launch your blockchain


## ignite testnet

Start a testnet local

**Synopsis**

The commands in this namespace allow you to start your local testnet for development purposes. Currently there is only one feature to create a testnet from any state network (including mainnet).


The "in-place" command is used to create and start a testnet from current local net state(including mainnet).
After using this command in the repo containing the config.yml file, the network will start.
We can create a testnet from the local network state and mint additional coins for the desired accounts from the config.yml file.

During development, in-place allows you to quickly reboot the chain from a multi-node network state to a node you have full control over.

**SEE ALSO**

* [ignite testnet in-place](#ignite-testnet-in-place) - Create and start a testnet from current local net state


## ignite testnet in-place

Create and start a testnet from current local net state

**Synopsis**

The "in-place" command is used to create and start a testnet from current local net state(including mainnet).

We can create a testnet from the local network state and mint additional coins for the desired accounts from the config.yml file.

During development, in-place allows you to quickly reboot the chain from a multi-node network state to a node you have full control over.

By default, the data directory will be initialized in $HOME/.mychain, where "mychain" is the name of the project. To set a custom data directory use the --home flag or set the value in config.yml:

validators:
- name: alice
bonded: '100000000stake'
home: "~/.customdir"

Get mint coin just add account in config.yml file:

accounts:
- name: charlie
coins:
- 20000token
- 200000000stake


```
ignite chain debug [flags]
```

**Options**

```
-h, --help help for debug
-p, --path string path of the app (default ".")
```

**Options inherited from parent commands**

```
-c, --config string path to Ignite config file (default: ./config.yml)
```

**SEE ALSO**

* [ignite](#ignite) - Ignite CLI offers everything you need to scaffold, test, build, start testnet and launch your blockchain
55 changes: 55 additions & 0 deletions docs/docs/08-references/01-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ To get started, create a blockchain:
* [ignite network](#ignite-network) - Launch a blockchain in production
* [ignite relayer](#ignite-relayer) - Connect blockchains with an IBC relayer
* [ignite scaffold](#ignite-scaffold) - Create a new blockchain, module, message, query, and more
* [ignite testnet](#ignite-testnet) - Start a testnet local
* [ignite version](#ignite-version) - Print the current build information


Expand Down Expand Up @@ -3420,6 +3421,60 @@ ignite scaffold vue [flags]
* [ignite scaffold](#ignite-scaffold) - Create a new blockchain, module, message, query, and more


## ignite testnet

Start a testnet local

**Synopsis**

Start a testnet local



**Options**

```
-h, --help help for testnet
```

**SEE ALSO**

* [ignite](#ignite) - Ignite CLI offers everything you need to scaffold, test, build, and launch your blockchain
* [ignite testnet in-place](#ignite-testnet-in-place) - Create and start a testnet from current local net state


## ignite testnet in-place

Create and start a testnet from current local net state

**Synopsis**

Testnet in-place command is used to create and start a testnet from current local net state(including mainnet).
After using this command in the repo containing the config.yml file, the network will start.
We can create a testnet from the local network state and mint additional coins for the desired accounts from the config.yml file.

```
ignite testnet in-place [flags]
```

**Options**

```
--check-dependencies verify that cached dependencies have not been modified since they were downloaded
--clear-cache clear the build cache (advanced)
-h, --help help for in-place
--home string directory where the blockchain node is initialized
-p, --path string path of the app (default ".")
--quit-on-fail quit program if the app fails to start
--skip-proto skip file generation from proto
-v, --verbose verbose output
```

**SEE ALSO**

* [ignite testnet](#ignite-testnet) - Start a testnet local


## ignite version

Print the current build information
Expand Down
1 change: 1 addition & 0 deletions ignite/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ To get started, create a blockchain:
NewApp(),
NewDoctor(),
NewCompletionCmd(),
NewTestnet(),
)
c.AddCommand(deprecated()...)
c.SetContext(ctx)
Expand Down
5 changes: 4 additions & 1 deletion ignite/cmd/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func assertFlags(t *testing.T, expectedFlags plugin.Flags, execCmd *plugin.Execu
}

func TestLinkPluginCmds(t *testing.T) {
t.Skip("passes locally and with act, but fails in CI")

var (
args = []string{"arg1", "arg2"}
pluginParams = map[string]string{"key": "val"}
Expand Down Expand Up @@ -417,6 +419,8 @@ func dumpCmd(c *cobra.Command, w io.Writer, ntabs int) {
}

func TestLinkPluginHooks(t *testing.T) {
t.Skip("passes locally and with act, but fails in CI")

var (
args = []string{"arg1", "arg2"}
pluginParams = map[string]string{"key": "val"}
Expand Down Expand Up @@ -613,7 +617,6 @@ func TestLinkPluginHooks(t *testing.T) {
defer cancel()

require := require.New(t)
// assert := assert.New(t)
pi := mocks.NewPluginInterface(t)
p := &plugin.Plugin{
Plugin: pluginsconfig.Plugin{
Expand Down
24 changes: 24 additions & 0 deletions ignite/cmd/testnet.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package ignitecmd

import (
"github.com/spf13/cobra"
)

// NewTestnet returns a command that groups scaffolding related sub commands.
func NewTestnet() *cobra.Command {
c := &cobra.Command{
Use: "testnet [command]",
Short: "Start a testnet local",
Long: `Start a testnet local
`,
Aliases: []string{"s"},
Args: cobra.ExactArgs(1),
}

c.AddCommand(
NewTestnetInPlace(),
)

return c
}
Loading

0 comments on commit 3576fc2

Please sign in to comment.