Upgrade Terraform provider library Go deps + Require go 1.20 (#62) #379
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: Unit Tests | |
# Runs unit tests for pull requests and pushes to master. | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
unit: | |
strategy: | |
matrix: | |
go-version: [1.20.x, 1.21.x] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Build | |
run: go build -v ./... | |
- name: Vet | |
run: make vet | |
- name: Test | |
run: make test |