forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: configure monorepo sonarcloud (backport cosmos#13944) (cosmos#13985)
* ci: configure monorepo sonarcloud (cosmos#13944) (cherry picked from commit ae91105) # Conflicts: # .codecov.yml # .github/workflows/test.yml # sonar-project.properties * updates * cosmos#13987 Co-authored-by: Julien Robert <[email protected]>
- Loading branch information
1 parent
315ca54
commit 922962a
Showing
28 changed files
with
616 additions
and
514 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,10 @@ name: Build SimApp | |
# This workflow is run on pushes to main & every Pull Requests where a .go, .mod, .sum have been changed | ||
on: | ||
pull_request: | ||
paths: | ||
- "**/*.go" | ||
- "go.mod" | ||
- "go.sum" | ||
push: | ||
branches: | ||
- main | ||
- release/** | ||
paths: | ||
- "**/*.go" | ||
- "go.mod" | ||
- "go.sum" | ||
permissions: | ||
contents: read | ||
|
||
|
@@ -32,10 +24,23 @@ jobs: | |
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.2 | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
PATTERNS: | | ||
**/*.go | ||
go.mod | ||
go.sum | ||
**/go.mod | ||
**/go.sum | ||
**/Makefile | ||
Makefile | ||
- name: Build | ||
if: env.GIT_DIFF | ||
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build | ||
- name: Build Legacy | ||
if: env.GIT_DIFF | ||
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false COSMOS_BUILD_OPTIONS=legacy make build | ||
|
||
- name: Build Cosmovisor | ||
if: env.GIT_DIFF | ||
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make cosmovisor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,29 +15,13 @@ jobs: | |
build: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
pull-requests: read # for technote-space/get-diff-action to get git reference | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'skip-sims')" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.2 | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
go.mod | ||
go.sum | ||
- name: Get data from Go build cache | ||
if: ${{ false }} | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
~/.cache/golangci-lint | ||
~/.cache/go-build | ||
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | ||
- run: make build | ||
- name: Install runsim | ||
run: go install github.com/cosmos/tools/cmd/[email protected] | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.