Skip to content

Commit

Permalink
Bump go and go-backstage (#5)
Browse files Browse the repository at this point in the history
Use the latest versions. Also, start uploading test coverage to CodeCov.
  • Loading branch information
tdabasinskas committed Feb 7, 2023
2 parents 487f798 + efbb3b1 commit c2300d2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,15 @@ jobs:
- env:
ACCTEST_SKIP_RESOURCE_TEST: "1"
BACKSTAGE_BASE_URL: "https://demo.backstage.io"
run: go test -v -cover ./backstage
run: go test -v -cover -covermode=atomic -coverprofile=coverage1.out ./backstage
timeout-minutes: 10
- env:
BACKSTAGE_BASE_URL: "http://localhost:${{ job.services.backstage.ports[7000] }}"
run: go test -v -cover ./backstage -run TestAccResourceLocation
run: go test -v -cover -covermode=atomic -coverprofile=coverage2.out ./backstage -run TestAccResourceLocation
timeout-minutes: 10
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage1.out,./coverage2.out
verbose: true
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Terraform Provider for Backstage

[![Tests](https://github.com/tdabasinskas/terraform-provider-backstage/actions/workflows/test.yml/badge.svg)](https://github.com/tdabasinskas/terraform-provider-backstage/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/tdabasinskas/terraform-provider-backstage/branch/main/graph/badge.svg?token=1QSZTX0N2B)](https://codecov.io/gh/tdabasinskas/terraform-provider-backstage)
[![go-github release (latest SemVer)](https://img.shields.io/github/v/release/tdabasinskas/terraform-provider-backstage?sort=semver)](https://github.com/tdabasinskas/terraform-provider-backstage/releases)
[![registry](https://img.shields.io/static/v1?label=terraform&message=registry&color=blueviolet)](https://registry.terraform.io/providers/tdabasinskas/backstage/latest)

Expand All @@ -21,7 +22,7 @@ most of the official documentation on developing this provider is also applicabl
### Requirements

- [Terraform](https://www.terraform.io/downloads)
- [Go](https://go.dev/doc/install) (1.19)
- [Go](https://go.dev/doc/install) (1.20)
- [GNU make](https://www.gnu.org/software/make/)
- [Docker](https://docs.docker.com/get-docker/) (optional)

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/tdabasinskas/terraform-provider-backstage

go 1.19
go 1.20

require (
github.com/hashicorp/terraform-plugin-docs v0.13.0
Expand Down Expand Up @@ -57,7 +57,7 @@ require (
github.com/shopspring/decimal v1.3.1 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/stretchr/testify v1.8.1 // indirect
github.com/tdabasinskas/go-backstage v1.1.0 // indirect
github.com/tdabasinskas/go-backstage v1.1.1 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
github.com/vmihailenco/tagparser v0.1.2 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c2300d2

Please sign in to comment.