Skip to content

chore(go.mod): bump cosmos-sdk and cometbft versions #10212

chore(go.mod): bump cosmos-sdk and cometbft versions

chore(go.mod): bump cosmos-sdk and cometbft versions #10212

name: Integration
on:
pull_request:
push:
paths-ignore:
- '**.md'
branches:
- main
jobs:
pre-test:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v3.4.0
- name: Finding files and store to output
id: set-matrix
run: echo "matrix=$({ cd integration && find . -type d ! -name testdata -maxdepth 1 -print; } | tail -n +2 | cut -c 3- | jq -R . | jq -cs .)" >> $GITHUB_OUTPUT
integration:
name: test ${{ matrix.test-path }}
runs-on: ubuntu-latest
needs: pre-test
if: fromJSON(needs.pre-test.outputs.matrix)[0] != null
continue-on-error: false
strategy:
fail-fast: true
matrix:
test-path: ${{fromJson(needs.pre-test.outputs.matrix)}}
steps:
- uses: actions/checkout@v3.4.0
- uses: technote-space/get-diff-action@v6.1.2
with:
PATTERNS: |
**/*.go
go.mod
go.sum
**/testdata/**
- uses: actions/cache@v3
if: env.GIT_DIFF
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@v4
if: env.GIT_DIFF
with:
go-version: 1.19
- name: Run Integration Tests
if: env.GIT_DIFF
run: GOSUMDB=off go test -v -timeout 80m ./integration/${{ matrix.test-path }}
status:
runs-on: ubuntu-latest
needs: integration
if: always()
steps:
- name: Update result status
run: |
if [ "${{ needs.integration.result }}" = "failure" ]; then
exit 1
else
exit 0
fi