Skip to content

Commit

Permalink
Merge branch 'dev' into refactor/DEVTOOLING-634
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshperiyappan committed Jul 31, 2024
2 parents 1391452 + 42307bb commit 13e0c6a
Show file tree
Hide file tree
Showing 642 changed files with 17,932 additions and 9,070 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/generate.yml → .github/workflows/go-checks.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: Ensure Documentation in Sync
name: Go Checks
on:
push:
paths-ignore:
- 'README.md'
jobs:
# ensure the documentation is up to date
generate:
name: Generate
go-checks:
name: Go Checks
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
Expand Down Expand Up @@ -35,5 +34,20 @@ jobs:
if [[ -n $(git status -s) ]]; then
echo "There are untracked documentation changes:\n"
git status
fi
- name: Tidy
run: |
go mod tidy
if [[ -n $(git status -s) ]]; then
echo "go mod tidy produced changes:\n"
git status
fi
- name: Vet
run: |
if [[ -n $(go vet ./genesyscloud/... 2>&1) ]]; then
echo "go vet highlighted the following:\n"
go vet ./genesyscloud/...
exit 1
fi
119 changes: 0 additions & 119 deletions .github/workflows/test-workflow.yml

This file was deleted.

129 changes: 0 additions & 129 deletions .github/workflows/test.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Unit Tests
on:
push:
paths-ignore:
- 'README.md'
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Run Unit Tests
env:
TF_UNIT: '*'
ENABLE_STANDALONE_CGR: 'true'
ENABLE_STANDALONE_EMAIL_ADDRESS: 'true'
run: |
go test ./genesyscloud/... -v -run TestUnit
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
version: 2

before:
hooks:
# this is just an example and not a requirement for provider building/publishing
Expand Down Expand Up @@ -56,8 +58,6 @@ signs:
release:
draft: true
changelog:
# Defaults to false.
skip: 'false'
use: github
sort: asc
abbrev: -1
Expand Down
5 changes: 4 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
default: build

.PHONY: testacc clean build sideload
.PHONY: testacc clean build docs sideload

DIST_DIR=./dist
BIN_NAME=terraform-provider-genesyscloud
Expand Down Expand Up @@ -29,6 +29,9 @@ testacc:
testunit:
TF_UNIT=1 go test ./... -run TestUnit -cover -count=1 -coverprofile=coverage_unit.out

# Generate docs
docs:
go generate

coverageacc:
go tool cover -func coverage.out | grep "total:" | \
Expand Down
Loading

0 comments on commit 13e0c6a

Please sign in to comment.