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 1e95f6a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
27 changes: 26 additions & 1 deletion .github/workflows/e2e_custom_cl.yml
Expand Up @@ -15,6 +15,31 @@ 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
./tests/go.mod
- run: |
if [ "${{ steps.tidy.outputs.changedfiles }}" ne "" ]; then
echo "needs a 'go mod tidy' run, found untidyness ${{ steps.tidy.outputs.changedfiles }}"
exit 1
fi
get_projectserum_version:
name: Get ProjectSerum Version
environment: integration
Expand Down Expand Up @@ -74,7 +99,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

0 comments on commit 1e95f6a

Please sign in to comment.