Skip to content

Support Managed Load Balancer as Resources #117

Support Managed Load Balancer as Resources

Support Managed Load Balancer as Resources #117

Workflow file for this run

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 ./...