feat(systemtests): increase verbosity (backport #22306) #8150
Workflow file for this run
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
name: v2 core Tests | |
on: | |
pull_request: | |
merge_group: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
concurrency: | |
group: ci-${{ github.ref }}-v2-tests | |
cancel-in-progress: true | |
jobs: | |
server-v2: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
check-latest: true | |
cache: true | |
cache-dependency-path: go.sum | |
- uses: technote-space/[email protected] | |
id: git_diff | |
with: | |
PATTERNS: | | |
server/v2/*.go | |
server/v2/go.mod | |
server/v2/go.sum | |
server/v2/testdata/*.toml | |
- name: test & coverage report creation | |
if: env.GIT_DIFF | |
run: | | |
cd server/v2 && go test -mod=readonly -race -timeout 30m -tags='ledger test_ledger_mock' | |
stf: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
check-latest: true | |
cache: true | |
cache-dependency-path: go.sum | |
- uses: technote-space/[email protected] | |
id: git_diff | |
with: | |
PATTERNS: | | |
server/v2/stf/**/*.go | |
server/v2/stf/go.mod | |
server/v2/stf/go.sum | |
- name: test & coverage report creation | |
if: env.GIT_DIFF | |
run: | | |
cd server/v2/stf && go test -mod=readonly -race -timeout 30m -tags='ledger test_ledger_mock' | |
appmanager: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
check-latest: true | |
cache: true | |
cache-dependency-path: go.sum | |
- uses: technote-space/[email protected] | |
id: git_diff | |
with: | |
PATTERNS: | | |
server/v2/appmanager/**/*.go | |
server/v2/appmanager/go.mod | |
server/v2/appmanager/go.sum | |
- name: test & coverage report creation | |
if: env.GIT_DIFF | |
run: | | |
cd server/v2/appmanager && go test -mod=readonly -race -timeout 30m -tags='ledger test_ledger_mock' | |
cometbft: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
check-latest: true | |
cache: true | |
cache-dependency-path: go.sum | |
- uses: technote-space/[email protected] | |
id: git_diff | |
with: | |
PATTERNS: | | |
server/v2/cometbft/**/*.go | |
server/v2/cometbft/go.mod | |
server/v2/cometbft/go.sum | |
- name: test & coverage report creation | |
if: env.GIT_DIFF | |
run: | | |
cd server/v2/cometbft && go test -mod=readonly -race -timeout 30m -tags='ledger test_ledger_mock' | |
test-system-v2: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-tags: true | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
check-latest: true | |
cache: true | |
cache-dependency-path: | | |
simapp/v2/go.sum | |
systemtest/go.sum | |
- uses: technote-space/[email protected] | |
id: git_diff | |
with: | |
PATTERNS: | | |
**/*.go | |
go.mod | |
go.sum | |
**/go.mod | |
**/go.sum | |
**/Makefile | |
Makefile | |
- name: Install musl lib for simd (docker) binary | |
if: env.GIT_DIFF | |
run: | | |
sudo apt-get install -y musl | |
- name: system tests v2 | |
if: env.GIT_DIFF | |
run: | | |
COSMOS_BUILD_OPTIONS=v2 make test-system | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: "testnet-setup" | |
path: ./systemtests/testnet/ | |
retention-days: 3 |