Skip to content

Commit

Permalink
Add go mod tidy check (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
tateexon committed Dec 6, 2022
1 parent ba50ba5 commit 966f889
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chainlink-testing-framework/run-tests/action.yml
Expand Up @@ -83,7 +83,7 @@ runs:
steps:
# Setup Tools and libraries
- name: Setup environment
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/setup-run-tests-environment@v2.0.29
uses: smartcontractkit/chainlink-github-actions/chainlink-testing-framework/setup-run-tests-environment@v2.0.30
with:
test_download_vendor_packages_command: ${{ inputs.test_download_vendor_packages_command }}
test_download_ginkgo_command: ${{ inputs.test_download_ginkgo_command }}
Expand Down
11 changes: 11 additions & 0 deletions chainlink-testing-framework/setup-run-tests-environment/action.yml
Expand Up @@ -43,6 +43,17 @@ runs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Tidy and check files
shell: bash
run: |
# find test go root by using the go_mod_path and change to that directory
TEST_LIB_PATH="${{ inputs.go_mod_path }}"
if [ "${#TEST_LIB_PATH}" -gt "6" ]; then
TEST_LIB_PATH=${TEST_LIB_PATH%go.mod}
cd "${TEST_LIB_PATH}"
fi
go mod tidy
git diff --stat --exit-code
- name: Download Go Vendor Packages
if: steps.cache-packages.outputs.cache-hit != 'true'
shell: bash
Expand Down

0 comments on commit 966f889

Please sign in to comment.