Split scenarios test #566
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: 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=$(cd interchaintest && go test -list ^TestScenario | grep -v "^ok " | jq -R -s -c 'split("\n")[:-1]') | |
echo "matrix=${TESTS}" >> $GITHUB_OUTPUT | |
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 }} |