Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin committed Sep 25, 2023
1 parent 102378d commit f15bcb9
Show file tree
Hide file tree
Showing 15 changed files with 1,391 additions and 690 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,30 @@ jobs:
name: noble-docker-image
path: ${{ env.TAR_PATH }}

prepare-e2e-tests:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Generate matrix
id: set-matrix
run: |
# Run the command and convert its output to a JSON array
TESTS=$(cd interchaintest && go test -list . | grep -v "^ok " | jq -R -s -c 'split("\n")[:-1]')
echo "matrix=${TESTS}" >> $GITHUB_OUTPUT
e2e-tests:
needs: build-docker
needs:
- build-docker
- prepare-e2e-tests
runs-on: ubuntu-latest
strategy:
matrix:
# names of `make` commands to run tests
test: ["ictest-tkn-factory", "ictest-packet-forward", "ictest-paramauthority", "ictest-chain-upgrade-noble-1", "ictest-chain-upgrade-grand-1", "ictest-globalFee", "ictest-ics20-bps-fees", "ictest-client-substitution"]
test: ${{fromJson(needs.prepare-e2e-tests.outputs.matrix)}}
fail-fast: false

steps:
Expand All @@ -72,4 +89,4 @@ jobs:
run: docker image load -i ${{ env.TAR_PATH }}

- name: run test
run: make ${{ matrix.test }}
run: cd interchaintest && go test -race -v -timeout 15m -run ^${{ matrix.test }}$$ .
24 changes: 0 additions & 24 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,30 +102,6 @@ lint:
test:
go test -v -race ./...

ictest-tkn-factory:
cd interchaintest && go test -race -v -run ^TestNobleChain$$ .

ictest-packet-forward:
cd interchaintest && go test -race -v -run ^TestPacketForwardMiddleware$$ .

ictest-paramauthority:
cd interchaintest && go test -race -v -run ^TestNobleParamAuthority$$ .

ictest-chain-upgrade-grand-1:
cd interchaintest && go test -race -v -timeout 15m -run ^TestGrand1ChainUpgrade$$ .

ictest-chain-upgrade-noble-1:
cd interchaintest && go test -race -v -timeout 15m -run ^TestNoble1ChainUpgrade$$ .

ictest-globalFee:
cd interchaintest && go test -race -v -run ^TestGlobalFee$$ .

ictest-ics20-bps-fees:
cd interchaintest && go test -race -v -run ^TestICS20BPSFees$$ .

ictest-client-substitution:
cd interchaintest && go test -race -v -run ^TestClientSubstitution$$ .

###############################################################################
### Build Image ###
###############################################################################
Expand Down
Loading

0 comments on commit f15bcb9

Please sign in to comment.