Skip to content

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
lbn committed Feb 10, 2021
1 parent bef125f commit 6d6ba73
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/default.yml
Expand Up @@ -58,6 +58,14 @@ jobs:
env:
SCALR_HOSTNAME: ${{ steps.create.outputs.hostname }}
run: make testacc
- name: Install goveralls
env:
GO111MODULE: off
run: go get github.com/mattn/goveralls
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github
- name: Delete container
id: delete
if: ${{ always() && steps.create.outputs.container_id }}
Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Expand Up @@ -16,7 +16,7 @@ test:
$(BUILD_ENV) xargs -t -n4 go test $(TESTARGS) -timeout=30s -parallel=4

testacc:
$(BUILD_ENV) TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 15m
$(BUILD_ENV) TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 15m -covermode atomic -coverprofile=covprofile

vet:
@echo "go vet ."
Expand Down
4 changes: 3 additions & 1 deletion README.md
@@ -1,4 +1,6 @@
# Terraform provider for Scalr
![Build status](https://github.com/Scalr/terraform-provider-scalr/workflows/.github/workflows/default.yml/badge.svg) [![Coverage status](https://coveralls.io/repos/github/Scalr/terraform-provider-scalr/badge.svg?branch=develop)](https://coveralls.io/github/Scalr/terraform-provider-scalr?branch=develop)

The Scalr Terraform provider can be used to manage the components within the Scalr IaCP.
This will allow you to automate the creation of workspaces, variables, VCS providers and much more.

Expand Down Expand Up @@ -83,4 +85,4 @@ Commit title
Some description
[API_BRANCH]
[DB_BRANCH]
```
```

0 comments on commit 6d6ba73

Please sign in to comment.