Skip to content

Commit

Permalink
ci: configure monorepo sonarcloud (backport #13944) (#13985)
Browse files Browse the repository at this point in the history
* ci: configure monorepo sonarcloud (#13944)

(cherry picked from commit ae91105)

# Conflicts:
#	.codecov.yml
#	.github/workflows/test.yml
#	sonar-project.properties

* updates

* #13987

Co-authored-by: Julien Robert <julien@rbrt.fr>
  • Loading branch information
mergify[bot] and julienrbrt authored Nov 23, 2022
1 parent 315ca54 commit 922962a
Show file tree
Hide file tree
Showing 28 changed files with 616 additions and 514 deletions.
44 changes: 0 additions & 44 deletions .build.sh

This file was deleted.

59 changes: 0 additions & 59 deletions .codecov.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/build-skip.yml

This file was deleted.

23 changes: 14 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -32,10 +24,23 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: 1.19.2
- uses: technote-space/get-diff-action@v6.1.1
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
16 changes: 0 additions & 16 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/get-diff-action@v6.1.1
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/runsim@v1.0.0
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/test-e2e-skip.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/test-e2e.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/test-integration-skip.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/test-integration.yml

This file was deleted.

78 changes: 0 additions & 78 deletions .github/workflows/test-legacy.yml

This file was deleted.

Loading

0 comments on commit 922962a

Please sign in to comment.