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 f67805f
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/e2e_custom_cl.yml
Expand Up @@ -15,6 +15,26 @@ 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
- 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 All @@ -24,6 +44,11 @@ jobs:
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
- name: Get ProjectSerum Version
id: psversion
uses: ./.github/actions/projectserum_version
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

0 comments on commit f67805f

Please sign in to comment.