Skip to content

Commit

Permalink
chore: release v0.25.0 (#2962)
Browse files Browse the repository at this point in the history
chore: release v0.25.0
  • Loading branch information
ilgooz authored Oct 20, 2022
2 parents d1f26ea + 0969582 commit deaa513
Show file tree
Hide file tree
Showing 399 changed files with 25,549 additions and 7,533 deletions.
6 changes: 3 additions & 3 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"projects": {
"default": "ignite-hq"
"default": "ignitesrvc"
},
"targets": {
"ignite-hq": {
"ignitesrvc": {
"hosting": {
"docs.ignite.com": [
"ignite-go-docs"
"ignitesrvc-d"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
* @ilgooz @lubtd @jeronimoalbi @aljo242 @tbruyelle @fadeev

# Docs
*.md @ilgooz @aljo242
*.md @ilgooz @aljo242 @lubtd
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Ignite CLI bug report
about: Create a report to help us improve
title: ''
labels: report
labels: bug
assignees: ''
---

Expand All @@ -16,4 +16,4 @@ Steps to reproduce the behavior:
**What version are you using?**

Provide the output of the `ignite version` command.


6 changes: 3 additions & 3 deletions .github/workflows/docs-deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build_and_deploy:
runs-on: ubuntu-latest
runs-on: self-hosted

steps:
- name: Checkout
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_IGNITE_HQ }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_IGNITESRVC }}"
expires: 7d
target: docs.ignite.com
projectId: ignite-hq
projectId: ignitesrvc
8 changes: 4 additions & 4 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ on:

jobs:
consecutiveness:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: mktcode/consecutive-workflow-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

build_and_deploy:
runs-on: ubuntu-latest
runs-on: self-hosted
needs: [ consecutiveness ]

steps:
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_IGNITE_HQ }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_IGNITESRVC }}"
channelId: live
target: docs.ignite.com
projectId: ignite-hq
projectId: ignitesrvc
4 changes: 2 additions & 2 deletions .github/workflows/gen-docs-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19

- name: Generate CLI Docs
run: ./scripts/gen-cli-docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
go-version: 1.19

- name: Run make format
run: make format
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:

steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19

- name: Checkout
uses: actions/checkout@v2
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/release-cosmoverse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Release cosmoverse

on:
push:
branches:
- cosmoverse

jobs:
consecutiveness:
runs-on: ubuntu-latest
steps:
- uses: mktcode/consecutive-workflow-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

release-cosmoverse:
runs-on: ubuntu-latest
needs: [ consecutiveness ]
env:
working-directory: go/src/github.com/ignite/cli

steps:
- uses: actions/checkout@v2

- name: Delete the cosmoverse release
uses: dev-drprasad/[email protected]
with:
tag_name: v0.0.0-cosmoverse
delete_release: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Bump version and push tag
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: v0.0.0-cosmoverse
tag_prefix: ""

- name: Upsert the cosmoverse release
uses: ncipollo/release-action@v1
with:
tag: v0.0.0-cosmoverse
name: cosmoverse
body: "Install and move the CLI to your bin directory: `curl https://get.ignite.com/[email protected]! | bash`"
prerelease: true

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Checkout
uses: actions/checkout@v2
with:
path: ${{ env.working-directory }}
fetch-depth: 0

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
workdir: ${{ env.working-directory }}
args: release --rm-dist --skip-validate -f .goreleaser.cosmoverse.yml
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

49 changes: 26 additions & 23 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- develop
- chore/fix-nightly-builds

jobs:
consecutiveness:
Expand All @@ -25,41 +26,43 @@ jobs:
- name: Delete the nightly release
uses: dev-drprasad/[email protected]
with:
tag_name: v0.0.0-nightly
tag_name: nightly
delete_release: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Bump version and push tag
- name: Push new nightly tag
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: v0.0.0-nightly
custom_tag: nightly
tag_prefix: ""

- name: Upsert the nightly release
- name: Create the new nightly release
uses: ncipollo/release-action@v1
with:
tag: v0.0.0-nightly
tag: nightly
name: nightly
body: "Install and move the CLI to your bin directory: `curl https://get.ignite.com/cli@v0.0.0-nightly! | bash`"
body: "Install and move the CLI to your bin directory: `curl https://get.ignite.com/cli@nightly! | bash`"
prerelease: true

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Checkout
uses: actions/checkout@v2
with:
path: ${{ env.working-directory }}
fetch-depth: 0

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
releases-binaries:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
workdir: ${{ env.working-directory }}
args: release --rm-dist --skip-validate -f .goreleaser.nightly.yml
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
github_token: ${{ secrets.GITHUB_TOKEN }}
project_path: "./ignite/cmd/ignite"
binary_name: "ignite"
asset_name: ignite-nightly-${{ matrix.goos }}-${{ matrix.goarch }}
release_name: "nightly"
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
ldflags: -s -w -X github.com/ignite/cli/ignite/version.Version=nightly
goversion: "1.19"
19 changes: 4 additions & 15 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
- name: Finding files and store to output
id: set-matrix
run: echo "::set-output name=matrix::$({ cd integration && find . -type d -maxdepth 1 -print; } | tail -n +2 | cut -c 3- | jq -R . | jq -cs .)"
run: echo "::set-output name=matrix::$({ cd integration && find . -type d ! -name testdata -maxdepth 1 -print; } | tail -n +2 | cut -c 3- | jq -R . | jq -cs .)"

integration:
name: test ${{ matrix.test-path }}
Expand All @@ -31,30 +31,19 @@ jobs:
test-path: ${{fromJson(needs.pre-test.outputs.matrix)}}
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v4
with:
PATTERNS: |
**/*
!**/*.md
- uses: actions/cache@v2
if: env.GIT_DIFF
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@v2
if: env.GIT_DIFF
- uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Install Ignite CLI
if: env.GIT_DIFF
run: go install ./...
go-version: 1.19
- name: Run Integration Tests
if: env.GIT_DIFF
run: go test -v -timeout 60m ./integration/${{ matrix.test-path }}
run: GOSUMDB=off go test -v -timeout 60m ./integration/${{ matrix.test-path }}

status:
runs-on: ubuntu-latest
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,13 @@ jobs:
timeout-minutes: 6
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v4
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- name: Set up Go
uses: actions/setup-go@v2
if: env.GIT_DIFF
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- uses: golangci/golangci-lint-action@master
if: env.GIT_DIFF
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.45.2
version: v1.49.0
args: --timeout 10m
github-token: ${{ secrets.github_token }}
11 changes: 2 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v4
- uses: actions/setup-go@v3
with:
PATTERNS: |
**/*
!**/*.md
- uses: actions/setup-go@v2
if: env.GIT_DIFF
with:
go-version: 1.18
go-version: 1.19
- run: ./scripts/test-unit
if: env.GIT_DIFF
3 changes: 1 addition & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ linters:
# - errcheck
- goconst
- gocritic
- gofmt
- goimports
- gofumpt
- revive
# - gosec
- gosimple
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.nightly.yml → .goreleaser.cosmoverse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ changelog:
skip: true
release:
prerelease: true
name_template: nightly
name_template: cosmoverse
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project_name: ignite
builds:
- main: ./ignite/cmd/ignite
ldflags:
- -s -w -X github.com/ignite/cli/ignite/version.Version={{.Tag}} -X github.com/ignite/cli/ignite/version.Date={{.Date}} -X github.com/ignite/cli/ignite/version.Head={{.FullCommit}}
- -s -w -X github.com/ignite/cli/ignite/version.Version={{.Tag}}
goos:
- linux
- darwin
Expand Down
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
PROJECT_NAME = ignite
DATE := $(shell date '+%Y-%m-%dT%H:%M:%S')
HEAD = $(shell git rev-parse HEAD)
LD_FLAGS = -X github.com/ignite/cli/ignite/version.Head='$(HEAD)' \
-X github.com/ignite/cli/ignite/version.Date='$(DATE)'
LD_FLAGS =
BUILD_FLAGS = -mod=readonly -ldflags='$(LD_FLAGS)'
BUILD_FOLDER = ./dist

Expand Down Expand Up @@ -41,6 +40,11 @@ govet:
@echo Running go vet...
@go vet ./...

## govulncheck: Run govulncheck
govulncheck:
@echo Running govulncheck...
@go run golang.org/x/vuln/cmd/govulncheck ./...

## format: Install and run goimports and gofumpt
format:
@echo Formatting...
Expand All @@ -65,7 +69,7 @@ test-integration: install
@go test -race -failfast -v -timeout 60m ./integration/...

## test: Run unit and integration tests.
test: govet test-unit test-integration
test: govet govulncheck test-unit test-integration

.PHONY: test-unit test-integration test

Expand Down
Loading

0 comments on commit deaa513

Please sign in to comment.