Support Managed Load Balancer as Resources #126
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: test | |
on: [pull_request] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go-version: [1.17.x, 1.18.x] | |
terraform-version: [0.12.x, 1.1.x] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v1 | |
with: | |
terraform_version: ${{ matrix.terraform-version }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Cache modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Go Format | |
run: if [ "$(gofmt -l `find . -name '*.go' | grep -v vendor` | wc -l)" -gt 0 ]; then exit 1; fi | |
- name: Terraform Format | |
run: terraform fmt -recursive -check | |
- name: Test | |
run: go test ./... |