diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 376dfb957554..48c7e82a9677 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -144,7 +144,7 @@ jobs: name: "${{ github.sha }}-e2e-coverage" path: ./tests/e2e-profile.out - test-system: + test-system: # v2 system tests are in v2-test.yml runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -183,16 +183,6 @@ jobs: name: "testnet-setup" path: ./systemtests/testnet/ retention-days: 3 - - 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 repo-analysis: runs-on: ubuntu-latest diff --git a/.github/workflows/v2-test.yml b/.github/workflows/v2-test.yml index 6896f803a2c1..e26e12c0f402 100644 --- a/.github/workflows/v2-test.yml +++ b/.github/workflows/v2-test.yml @@ -109,3 +109,43 @@ jobs: 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/get-diff-action@v6.1.2 + 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