Skip to content

Commit

Permalink
bump go + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Nov 9, 2022
1 parent 6eead9b commit fe2f2c2
Show file tree
Hide file tree
Showing 20 changed files with 107 additions and 429 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/e2e-compatibility-workflow-call.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ on:
workflow_call:
inputs:
docker-tag:
description: 'Docker tag being used'
description: "Docker tag being used"
required: true
type: string
test-suite:
description: 'Test suite to run'
description: "Test suite to run"
required: true
type: string


jobs:
load-test-matrix:
outputs:
Expand All @@ -36,7 +35,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- name: Run e2e Test
run: |
cd e2e
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- id: set-matrix
run: echo "::set-output name=matrix::$(go run cmd/build_test_matrix/main.go)"
env:
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- name: Run e2e Test
env:
# see images here https://github.com/cosmos/relayer/pkgs/container/relayer/versions
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/e2e-test-workflow-call.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@ on:
workflow_call:
inputs:
test-entry-point:
description: 'Test entry point'
description: "Test entry point"
required: false
type: string
default: "" # empty string means run all tests
test-exclusions:
description: 'Comma separated list of tests to skip'
description: "Comma separated list of tests to skip"
required: false
type: string
default: "" # empty string means don't skip any test.
chain-image:
description: 'The image to use for chains'
description: "The image to use for chains"
required: true
type: string
default: "ghcr.io/cosmos/ibc-go-simd"
chain-a-tag:
description: 'The tag to use for chain A'
description: "The tag to use for chain A"
required: true
type: string
default: main
chain-b-tag:
default: v4.0.0
description: 'The tag to use for chain B'
description: "The tag to use for chain B"
required: true
type: string
chain-binary:
default: "simd"
description: 'The chain binary'
description: "The chain binary"
required: false
type: string
relayer-tag:
description: 'The tag to use for the relayer'
description: "The tag to use for the relayer"
required: true
default: "v2.0.0"
type: string
Expand All @@ -42,7 +42,6 @@ on:
type: boolean
default: false


env:
REGISTRY: ghcr.io
IMAGE_NAME: ibc-go-simd
Expand Down Expand Up @@ -100,7 +99,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- id: set-matrix
run: echo "::set-output name=matrix::$(go run cmd/build_test_matrix/main.go)"
env:
Expand All @@ -125,7 +124,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- name: Run e2e Test
run: |
cd e2e
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- name: Run e2e upgrade test
run: |
cd e2e
Expand Down
60 changes: 30 additions & 30 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,33 +19,33 @@ env:
IMAGE_NAME: ibc-go-simd

jobs:
determine-image-tag:
if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
outputs:
simd-tag: ${{ steps.get-tag.outputs.simd-tag }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
- id: get-tag
run: |
tag=$(go run cmd/determine_simd_tag/main.go -pr "${{ github.event.pull_request.number }}" )
echo "Using tag $tag"
echo "::set-output name=simd-tag::$tag"
e2e:
if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
needs:
- determine-image-tag
uses: ./.github/workflows/e2e-test-workflow-call.yml
secrets: inherit
with:
build-and-push-docker-image: true
chain-image: ghcr.io/cosmos/ibc-go-simd
chain-a-tag: "${{ needs.determine-image-tag.outputs.simd-tag }}"
chain-b-tag: "${{ needs.determine-image-tag.outputs.simd-tag }}"
relayer-tag: "v2.0.0"
chain-binary: "simd"
# on regular PRs we won't run interchain account or upgrade tests.
test-exclusions: "TestInterTxTestSuite,TestIncentivizedInterTxTestSuite,TestUpgradeTestSuite"
determine-image-tag:
if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
outputs:
simd-tag: ${{ steps.get-tag.outputs.simd-tag }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- id: get-tag
run: |
tag=$(go run cmd/determine_simd_tag/main.go -pr "${{ github.event.pull_request.number }}" )
echo "Using tag $tag"
echo "::set-output name=simd-tag::$tag"
e2e:
if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
needs:
- determine-image-tag
uses: ./.github/workflows/e2e-test-workflow-call.yml
secrets: inherit
with:
build-and-push-docker-image: true
chain-image: ghcr.io/cosmos/ibc-go-simd
chain-a-tag: "${{ needs.determine-image-tag.outputs.simd-tag }}"
chain-b-tag: "${{ needs.determine-image-tag.outputs.simd-tag }}"
relayer-tag: "v2.0.0"
chain-binary: "simd"
# on regular PRs we won't run interchain account or upgrade tests.
test-exclusions: "TestInterTxTestSuite,TestIncentivizedInterTxTestSuite,TestUpgradeTestSuite"
4 changes: 2 additions & 2 deletions .github/workflows/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/[email protected]
with:
version: latest
args: --timeout 5m
args: --timeout 5m
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- name: Display go version
run: go version
- name: install tparse
Expand All @@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- uses: technote-space/[email protected]
id: git_diff
with:
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19
- uses: technote-space/[email protected]
with:
PATTERNS: |
Expand Down
Loading

0 comments on commit fe2f2c2

Please sign in to comment.