build(deps): bump golang.org/x/tools from 0.30.0 to 0.31.0 #1367
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: gomod testing | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
paths: | |
- go.mod | |
jobs: | |
gomod_testing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install terraform | |
uses: hashicorp/setup-terraform@v3.1.2 | |
- name: Install go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21.6' | |
- name: Install packages | |
run: go mod tidy | |
- name: Perform unittest | |
env: | |
TFE_TOKEN: ${{ secrets.TFE_TOKEN }} | |
OAUTH_TOKEN_ID: ${{ secrets.OAUTH_TOKEN_ID }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: | | |
for file in $(ls -d ./terraform-modules/*/*); do | |
go test -v -timeout 30m ./$file/tests/ | |
done |