made required segment field to optional and added code for dns_zone_record #284
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: Go Unit Tests | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'docs/**' | |
- 'examples/**' | |
- '.github/workflows/**' | |
- '.goreleaser.yml' | |
- 'README.md' | |
pull_request: | |
branches: | |
- "*" | |
paths-ignore: | |
- 'docs/**' | |
- 'examples/**' | |
- '.github/workflows/**' | |
- '.goreleaser.yml' | |
- 'README.md' | |
jobs: | |
tests: | |
name: Go Tests | |
runs-on: self-hosted | |
timeout-minutes: 60 | |
steps: | |
- name: Configure git for private modules | |
env: | |
TOKEN: ${{ secrets.GITLAB_PERSONAL_ACCESS_TOKEN }} | |
USER: ${{ secrets.GITLAB_USERNAME }} | |
run: git config --global url."https://${USER}:${TOKEN}@gitlab.com".insteadOf "https://gitlab.com" | |
- name: Install Go 1.19 | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.19 | |
id: go | |
- uses: actions/checkout@master | |
- run: make cmd-go-mod-tidy | |
#- run: make cmd-go-mod-vendor | |
- name: Run tests | |
run: | | |
TF_ACC=1 go test -v ./... -timeout=30m |