Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add go mod tidy check #55

Merged
merged 1 commit into from Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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