Skip to content

Commit

Permalink
ci: configure monorepo sonarcloud (#13944)
Browse files Browse the repository at this point in the history
(cherry picked from commit ae91105)

# Conflicts:
#	.codecov.yml
#	.github/workflows/test.yml
#	sonar-project.properties
  • Loading branch information
julienrbrt authored and mergify[bot] committed Nov 23, 2022
1 parent fc9b70f commit 0af11da
Show file tree
Hide file tree
Showing 27 changed files with 656 additions and 419 deletions.
44 changes: 0 additions & 44 deletions .build.sh

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,5 @@ jobs:
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false make build
- name: Build Legacy
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false COSMOS_BUILD_OPTIONS=legacy make build

- name: Build Cosmovisor
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.

111 changes: 111 additions & 0 deletions .github/workflows/test-skip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Tests / Code Coverage
# This workflow allows to skip the test step if the PR does not contain any changes to the code
# See https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
on:
pull_request:
paths-ignore:
- "**/*.go"
- "go.mod"
- "go.sum"

concurrency:
group: ci-${{ github.ref }}-tests
cancel-in-progress: true

jobs:
test-submodules:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
part: ["00", "01", "02", "03"]
steps:
- run: 'echo "No tests required"'

tests-legacy:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
part: ["00", "01", "02", "03"]
steps:
- run: 'echo "No tests required"'

test-integration:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

test-e2e:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

repo-analysis:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

liveness-test:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

test-sim-nondeterminism:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

##################################
#### Cosmos SDK Go Submodules ####
##################################

test-clientv2:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

test-core:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

test-depinject:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

test-errors:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

test-math:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

test-simapp:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

test-tx:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

test-rosetta:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'

test-cosmovisor:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required"'
Loading

0 comments on commit 0af11da

Please sign in to comment.