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 d11131b
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/e2e_custom_cl.yml
Expand Up @@ -15,6 +15,25 @@ 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
exit 1
fi
get_projectserum_version:
name: Get ProjectSerum Version
environment: integration
Expand Down Expand Up @@ -74,7 +93,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 d11131b

Please sign in to comment.