[sdk50] Lint the go relayer like IBC-go #546
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.20 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- 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.20 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- 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.20 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- 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.20 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- 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.20 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- 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.20 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- 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 | |
scenarios: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.20 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- 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-scenario | |
- name: Prune Docker images | |
if: always() #ensure dangling images are pruned after interchain-test scenario passes or fails | |
run: docker image prune -f |