Merge pull request #32 from tonedefdev/dependabot/go_modules/github.c… #19
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: macOS Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test-mac: | |
name: Build and Test macOS | |
runs-on: macos-latest | |
steps: | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.19 | |
id: go | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Build | |
run: | | |
mkdir /Users/runner/.terraform.d | |
go build . | |
env: | |
HOME: /Users/runner/ | |
- name: Test | |
run: | | |
export PATH=$PATH:$PWD | |
cd cmd | |
go test -v -cover |