Skip to content

Split scenarios test #563

Split scenarios test

Split scenarios test #563

Workflow file for this run

name: TESTING - interchaintest
on:
pull_request:
push:
branches:
- master
jobs:
events:
runs-on: self-hosted
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: checkout relayer
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: interchaintest
run: make interchaintest-events
legacy:
runs-on: self-hosted
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: checkout relayer
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: interchaintest
run: make interchaintest-legacy
multiple-paths:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: checkout relayer
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: interchaintest
run: make interchaintest-multiple
misbehaviour:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: checkout relayer
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: interchaintest
run: make interchaintest-misbehaviour
fee-middleware:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: checkout relayer
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: interchaintest
run: make interchaintest-fee-middleware
fee-grant:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: checkout relayer
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: interchaintest
run: make interchaintest-fee-grant
prepare-scenario-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Generate matrix
id: set-matrix
run: |
# Run the command and convert its output to a JSON array
TESTS=$(go test -list ^TestScenario | jq -R -s -c 'split("\n")[:-1]')
echo "::set-output name=matrix::${TESTS}"
scenarios:
needs: prepare-scenario-matrix
runs-on: ubuntu-latest
strategy:
matrix:
test: ${{fromJson(needs.prepare-scenario-matrix.outputs.matrix)}}
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: checkout relayer
uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: interchaintest
run: |
cd interchaintest
go test -run ${{ matrix.test }}