Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feat/add-params
Browse files Browse the repository at this point in the history
# Conflicts:
#	ignite/pkg/goanalysis/goanalysis.go
#	ignite/pkg/goanalysis/goanalysis_test.go
  • Loading branch information
Pantani authored and Pantani committed Feb 15, 2024
2 parents d650546 + 17f1a76 commit f8d1ab9
Show file tree
Hide file tree
Showing 107 changed files with 3,175 additions and 870 deletions.
3 changes: 3 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ Please make sure to check the following for your PR:
Ignite CLI team only:

- [ ] I have updated the _Unreleased_ section in the changelog.md for my changes.
- [ ] If the templates in `ignite/templates/files` have been changed, make
sure that the change doesn't need to be reflected in the
`ignite/templates/files-*` folders.
25 changes: 25 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
queue_rules:
- name: default
conditions:
- "#approved-reviews-by>1"

pull_request_rules:
- name: automerge to main with label automerge and branch protection passing
conditions:
- "#approved-reviews-by>1"
- base=main
actions:
queue:
name: default
method: squash
commit_message_template: |
{{ title }} (#{{ number }})
{{ body }}
- name: backport patches to v28.x.y branch
conditions:
- base=main
- label=backport/v28.x.y
actions:
backport:
branches:
- release/v28.x.y
29 changes: 20 additions & 9 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: Release Docker Image

on:
release:
types: [ published ]
push:
branches:
- main
types: [published]
schedule:
- cron: "0 0 * * *" # every day at midnight

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -15,14 +14,27 @@ jobs:
consecutiveness:
runs-on: ubuntu-latest
steps:
- uses: ignite/consecutive-workflow-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ignite/consecutive-workflow-action@main
with:
token: ${{ secrets.GITHUB_TOKEN }}

check-latest-run:
runs-on: "ubuntu-latest"
steps:
- uses: octokit/[email protected]
id: check_last_run
with:
route: GET /repos/${{github.repository}}/actions/workflows/release-docker.yml/runs?per_page=1&status=completed
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
last_sha: ${{ fromJson(steps.check_last_run.outputs.data).workflow_runs[0].head_sha }}

docker:
name: Push Docker image to Docker Hub
if: needs.check-latest-run.outputs.last_sha != github.sha
runs-on: ubuntu-latest
needs: [ consecutiveness ]
needs: [consecutiveness, check-latest-run]

steps:
- name: Check out the repo
Expand Down Expand Up @@ -59,4 +71,3 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

31 changes: 31 additions & 0 deletions .github/workflows/release-homebrew.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Ignite to HomeBrew

on:
release:
types: [published]

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

jobs:
homebrew:
name: Bump Homebrew formula
runs-on: ubuntu-latest
steps:
- name: Extract version
id: extract-version
# Strip a string prefix from the git tag name:
run: |
echo "tag-name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- uses: mislav/bump-homebrew-formula-action@v3
with:
formula-name: ignite
formula-path: Formula/i/ignite.rb
homebrew-tap: Homebrew/homebrew-core
base-branch: master
download-url: https://github.com/ignite/cli/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz
env:
# the personal access token should have "repo" & "workflow" scopes
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
24 changes: 19 additions & 5 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Release nightly

on:
schedule:
- cron: "0 0 * * *" # every day at midnight
workflow_dispatch:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -18,9 +17,22 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

check-latest-run:
runs-on: "ubuntu-latest"
steps:
- uses: octokit/[email protected]
id: check_last_run
with:
route: GET /repos/${{github.repository}}/actions/workflows/release-nightly.yml/runs?per_page=1&status=completed
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
last_sha: ${{ fromJson(steps.check_last_run.outputs.data).workflow_runs[0].head_sha }}

release-nightly:
if: needs.check-latest-run.outputs.last_sha != github.sha
runs-on: ubuntu-latest
needs: [consecutiveness]
needs: [consecutiveness, check-latest-run]
env:
working-directory: go/src/github.com/ignite/cli

Expand Down Expand Up @@ -51,15 +63,17 @@ jobs:
prerelease: true

releases-binaries:
if: needs.check-latest-run.outputs.last_sha != github.sha
name: Release Go Binary
needs: [consecutiveness, check-latest-run]
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.40
- uses: wangyoucao577/go-release-action@v1.43
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
project_path: "./ignite/cmd/ignite"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish snap package
name: Publish Ignite to Snapcraft

on:
release:
Expand All @@ -23,9 +23,15 @@ jobs:
with:
fetch-depth: 0

- name: Update snapcraft.yaml
run: |
make snapcraft version=${GITHUB_REF#refs/tags/}
- name: Build snap package
uses: snapcore/action-build@v1
id: build-snap
with:
path: "packaging/snap"

- name: Publish snap package
uses: snapcore/action-publish@v1
Expand Down
18 changes: 16 additions & 2 deletions .gitpod/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ ignite chain serve

## Install Ignite CLI locally

You can install Ignite using [HomeBrew](https://formulae.brew.sh/formula/ignite) on macOS and GNU/Linux:

```sh
brew install ignite
```

Or using Snap on GNU/Linux:

```sh
snap install ignite --classic
```

Or manually using the following command:

```sh
curl https://get.ignite.com/cli | bash
```
Expand All @@ -46,14 +60,14 @@ The latest `ignite` binary is downloaded from the project repo and installed in

## Stay in touch

Ignite CLI is a free and open source product maintained by [Ignite](https://ignite.com). Follow us on [Twitter](https://twitter.com/ignite_dev) to get the latest updates.
Ignite CLI is a free and open source product maintained by [Ignite](https://ignite.com). Follow us on [Twitter](https://twitter.com/ignite) to get the latest updates.

## Community

Ignite CLI is a free and open source product maintained by [Ignite](https://ignite.com). Here's where you can find us. Stay in touch.

* [ignite.com website](https://ignite.com)
* [@ignite_dev on Twitter](https://twitter.com/ignite_dev)
* [@ignite on Twitter](https://twitter.com/ignite)
* [ignite.com/blog](https://ignite.com/blog)
* [Ignite Discord](https://discord.gg/ignite)
* [Ignite YouTube](https://www.youtube.com/@ignitehq)
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ build:
@-mkdir -p $(BUILD_FOLDER) 2> /dev/null
@go build $(BUILD_FLAGS) -o $(BUILD_FOLDER) ./...

## prepare snapcraft config for release
snapcraft:
@sed -i 's/{{version}}/'$(version)'/' packaging/snap/snapcraft.yaml

## prepare flatpak manifest for release
flatpak:
@sed -i 's/{{version}}/'$(version)'/' packaging/flatpak/com.ignite.Ignite.yml

## mocks: generate mocks
mocks:
@echo Generating mocks
Expand Down
28 changes: 28 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,36 @@

## Unreleased

### Changes

- [#3959](https://github.com/ignite/cli/pull/3959) Remove app name prefix from the `.gitignore` file
- [#3962](https://github.com/ignite/cli/pull/3962) Rename all RPC endpoints and autocli commands generated for `map`/`list`/`single` types

### Fixes

- [#3953](https://github.com/ignite/cli/pull/3953) Fix apps `Stdout` is redirected to `Stderr`
- [#3863](https://github.com/ignite/cli/pull/3963) Fix breaking issue for app client API when reading app chain info
- [#3969](https://github.com/ignite/cli/pull/3969) Get first config validator using a getter to avoid index errors

## [`v28.2.0`](https://github.com/ignite/cli/releases/tag/v28.2.0)

### Features

- [#3924](https://github.com/ignite/cli/pull/3924) Scaffold NFT module by default
- [#3839](https://github.com/ignite/cli/pull/3839) New structure for app scaffolding
- [#3835](https://github.com/ignite/cli/pull/3835) Add `--minimal` flag to `scaffold chain` to scaffold a chain with the least amount of sdk modules
- [#3820](https://github.com/ignite/cli/pull/3820) Add integration tests for IBC chains
- [#3956](https://github.com/ignite/cli/pull/3956) Prepare for wasm app

### Changes

- [#3899](https://github.com/ignite/cli/pull/3899) Introduce `plugin.Execute` function
- [#3903](https://github.com/ignite/cli/pull/3903) Don't specify a default build tag and deprecate notion of app version

### Fixes

- [#3905](https://github.com/ignite/cli/pull/3905) Fix `ignite completion`
- [#3931](https://github.com/ignite/cli/pull/3931) Fix `app update` command and duplicated apps

### Changes

Expand All @@ -23,6 +50,7 @@

- [#3885](https://github.com/ignite/cli/pull/3885) Scaffold chain with Cosmos SDK `v0.50.3`
- [#3877](https://github.com/ignite/cli/pull/3877) Change Ignite App extension to "ign"
- [#3897](https://github.com/ignite/cli/pull/3897) Introduce alternative folder in templates

## [`v28.1.0`](https://github.com/ignite/cli/releases/tag/v28.1.0)

Expand Down
24 changes: 18 additions & 6 deletions docs/docs/01-welcome/02-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,21 @@ ignite version

## Installing Ignite CLI

To install the latest version of the `ignite` binary use the following command.
To install the latest version of Ignite use [HomeBrew](https://formulae.brew.sh/formula/ignite) on macOS and GNU/Linux:

```sh
brew install ignite
```

Or use Snap on GNU/Linux:

```sh
snap install ignite --classic
```

### Install manually

Alternatively, you can install the latest version of the `ignite` binary use the following command:

```bash
curl https://get.ignite.com/cli! | bash
Expand All @@ -46,11 +60,6 @@ curl https://get.ignite.com/cli! | bash
This command invokes `curl` to download the installation script and pipes the output to `bash` to perform the
installation. The `ignite` binary is installed in `/usr/local/bin`.

To learn more or customize the installation process, see the [installer docs](https://github.com/ignite/installer) on
GitHub.

### Write permission

Ignite CLI installation requires write permission to the `/usr/local/bin/` directory. If the installation fails because
you do not have write permission to `/usr/local/bin/`, run the following command:

Expand Down Expand Up @@ -78,6 +87,9 @@ In this case, use sudo before `curl` and before `bash`:
sudo curl https://get.ignite.com/cli | sudo bash
```

To learn more or customize the installation process, see the [installer docs](https://github.com/ignite/installer) on
GitHub.

## Upgrading your Ignite CLI installation {#upgrade}

Before you install a new version of Ignite CLI, remove all existing Ignite CLI installations.
Expand Down
Loading

0 comments on commit f8d1ab9

Please sign in to comment.