Skip to content

Commit

Permalink
add tidy check
Browse files Browse the repository at this point in the history
  • Loading branch information
tateexon committed Dec 6, 2022
1 parent 795561b commit 0f4ae2c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
41 changes: 40 additions & 1 deletion .github/workflows/e2e_custom_cl.yml
Expand Up @@ -15,6 +15,45 @@ concurrency:
cancel-in-progress: true

jobs:
check_tidy:
name: Checks go tidy
environment: integration
runs-on: ubuntu-latest
outputs:
projectserum_version: ${{ steps.psversion.outputs.projectserum_version }}
steps:
- name: Checkout the repo
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: "./go.mod"
check-latest: true
- uses: evantorrie/mott-the-tidier@477fbfa0a0598b231ea347dcdeb740811b6be5be #v1-beta
id: tidy
with:
gomods: |
./go.mod
- run: |
if [ "${{ steps.tidy.outputs.changedfiles }}" ne "" ]; then
echo "needs a 'go mod tidy' run at root, found untidyness ${{ steps.tidy.outputs.changedfiles }}"
exit 1
fi
- name: Setup go
uses: actions/setup-go@v3
with:
go-version-file: "./tests/go.mod"
check-latest: true
- uses: evantorrie/mott-the-tidier@477fbfa0a0598b231ea347dcdeb740811b6be5be #v1-beta
id: tidy
with:
gomods: |
./tests/go.mod
- run: |
if [ "${{ steps.tidy.outputs.changedfiles }}" ne "" ]; then
echo "needs a 'go mod tidy' run in ./tests/, found untidyness ${{ steps.tidy.outputs.changedfiles }}"
exit 1
fi
get_projectserum_version:
name: Get ProjectSerum Version
environment: integration
Expand Down Expand Up @@ -74,7 +113,7 @@ jobs:
id-token: write
contents: read
runs-on: ubuntu-latest
needs: [e2e_custom_build_artifacts, e2e_custom_build_custom_chainlink_image]
needs: [e2e_custom_build_artifacts, e2e_custom_build_custom_chainlink_image, check_tidy]
env:
CHAINLINK_COMMIT_SHA: ${{ github.sha }}
CHAINLINK_ENV_USER: ${{ github.actor }}
Expand Down
4 changes: 2 additions & 2 deletions tests/go.mod
Expand Up @@ -17,7 +17,7 @@ require (
github.com/smartcontractkit/chainlink-env v0.2.55
github.com/smartcontractkit/chainlink-solana v1.0.3-0.20221027174234-50b4d94d7135
github.com/smartcontractkit/chainlink-testing-framework v1.8.5
github.com/smartcontractkit/chainlink/integration-tests v0.0.0-20221130214003-2872a0d0504f
github.com/smartcontractkit/chainlink/integration-tests v0.0.0-20221206171451-ede2dc1e2b53
github.com/smartcontractkit/libocr v0.0.0-20221121171434-482da3ed36d8
golang.org/x/crypto v0.1.0
golang.org/x/sync v0.1.0
Expand Down Expand Up @@ -277,7 +277,7 @@ require (
github.com/smartcontractkit/chainlink-relay v0.1.6-0.20221205145242-57d65316ed43 // indirect
github.com/smartcontractkit/chainlink-starknet/relayer v0.0.0-20220930034704-572ac07611cb // indirect
github.com/smartcontractkit/ocr2keepers v0.4.8 // indirect
github.com/smartcontractkit/ocr2vrf v0.0.0-20221108213147-df72abedd302 // indirect
github.com/smartcontractkit/ocr2vrf v0.0.0-20221206151523-7ae0ec615c0e // indirect
github.com/smartcontractkit/sqlx v1.3.5-0.20210805004948-4be295aacbeb // indirect
github.com/smartcontractkit/terra.go v1.0.3-0.20220108002221-62b39252ee16 // indirect
github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 // indirect
Expand Down
3 changes: 3 additions & 0 deletions tests/go.sum
Expand Up @@ -1616,12 +1616,15 @@ github.com/smartcontractkit/chainlink-testing-framework v1.8.5 h1:lsGqtTYqT1V2j8
github.com/smartcontractkit/chainlink-testing-framework v1.8.5/go.mod h1:ajdhuex4G92Cb1Dt/iuZmLDbBHBgoNHifBPqg1lLju4=
github.com/smartcontractkit/chainlink/integration-tests v0.0.0-20221130214003-2872a0d0504f h1:Z0+ReyancclipHBahd1gD14H9UDiXp1WMfL6lERyvr0=
github.com/smartcontractkit/chainlink/integration-tests v0.0.0-20221130214003-2872a0d0504f/go.mod h1:Fn7JvVUmPPrgENx3szeWo+nSep0KCKdFzwPu3ayy1l8=
github.com/smartcontractkit/chainlink/integration-tests v0.0.0-20221206171451-ede2dc1e2b53 h1:HtxdmBooP6BsQ86Vc5cdMGhlyVD0Cq1IdT9jSlaStac=
github.com/smartcontractkit/chainlink/integration-tests v0.0.0-20221206171451-ede2dc1e2b53/go.mod h1:7usGRFBQMPk9Xiavrzi4Ff/gdIvubbiLu2ufmSlvZEU=
github.com/smartcontractkit/libocr v0.0.0-20221121171434-482da3ed36d8 h1:KcTNxuP5g3GGUqn3WJe7KKnTixqfVZjmHnMAnKkLGJw=
github.com/smartcontractkit/libocr v0.0.0-20221121171434-482da3ed36d8/go.mod h1:5JnCHuYgmIP9ZyXzgAfI5Iwu0WxBtBKp+ApeT5o1Cjw=
github.com/smartcontractkit/ocr2keepers v0.4.8 h1:pvCDWIsYaSJI/M6qw0xIIXpHs5MPQaYEpmWsJiyi6LM=
github.com/smartcontractkit/ocr2keepers v0.4.8/go.mod h1:6wSlAWYBmlJM7bDZ4Ewc5J5AJQszIRGDNaUAw35r3qc=
github.com/smartcontractkit/ocr2vrf v0.0.0-20221108213147-df72abedd302 h1:r+AUXFhKLerpaNdAm0H+nMHvPUTb4uv8oRWBwlCfM28=
github.com/smartcontractkit/ocr2vrf v0.0.0-20221108213147-df72abedd302/go.mod h1:NKkp8yf3trq+hJe/gn2Q1dd4abZvcYavUKPzYJCgVew=
github.com/smartcontractkit/ocr2vrf v0.0.0-20221206151523-7ae0ec615c0e/go.mod h1:NKkp8yf3trq+hJe/gn2Q1dd4abZvcYavUKPzYJCgVew=
github.com/smartcontractkit/sqlx v1.3.5-0.20210805004948-4be295aacbeb h1:OMaBUb4X9IFPLbGbCHsMU+kw/BPCrewaVwWGIBc0I4A=
github.com/smartcontractkit/sqlx v1.3.5-0.20210805004948-4be295aacbeb/go.mod h1:HNUu4cJekUdsJbwRBCiOybtkPJEfGRELQPe2tkoDEyk=
github.com/smartcontractkit/terra.go v1.0.3-0.20220108002221-62b39252ee16 h1:k+E0RKzVSG1QpxXakNUtcGUhq4ZMe0MAJ5Awg/l9oSc=
Expand Down

0 comments on commit 0f4ae2c

Please sign in to comment.