Skip to content

Commit

Permalink
ci: configure monorepo sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Nov 22, 2022
1 parent 2739f83 commit 17568cd
Show file tree
Hide file tree
Showing 29 changed files with 603 additions and 400 deletions.
44 changes: 0 additions & 44 deletions .build.sh

This file was deleted.

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

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
4 changes: 4 additions & 0 deletions .github/workflows/test-e2e-skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- "go.mod"
- "go.sum"

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

jobs:
test-e2e:
runs-on: ubuntu-latest
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
permissions:
contents: read

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

jobs:
test-e2e:
runs-on: ubuntu-latest
Expand All @@ -28,3 +32,10 @@ jobs:
- name: e2e tests
run: |
make test-e2e
- name: sonarcloud
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_TESTS }}
with:
projectBaseDir: tests/
4 changes: 4 additions & 0 deletions .github/workflows/test-integration-skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- "go.mod"
- "go.sum"

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

jobs:
test-integration:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
permissions:
contents: read

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

jobs:
test-integration:
runs-on: ubuntu-latest
Expand Down
78 changes: 0 additions & 78 deletions .github/workflows/test-legacy.yml

This file was deleted.

99 changes: 99 additions & 0 deletions .github/workflows/test-skip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
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"'

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 ####

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

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

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

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

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

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

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

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

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

0 comments on commit 17568cd

Please sign in to comment.