Skip to content

Commit

Permalink
ci: added test coverage
Browse files Browse the repository at this point in the history
* ci: added test coverage report

* docs: added test, release and go report badges
  • Loading branch information
AlexNabokikh committed Feb 22, 2023
1 parent b76cb92 commit 9066b22
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,17 @@ jobs:
- name: Install dependencies
run: go mod download

- name: Go Test
run: go test -v -cover ./tsort

- name: Go Vet
run: go vet ./tsort

- name: Go Test
run: go test -v ./...

- name: Update coverage report
uses: ncruces/go-coverage-report@main
if: |
matrix.os == 'ubuntu-latest' &&
github.event_name == 'push'
continue-on-error: true
with:
branch: master
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# tfsort

[![badge-gh-release](https://github.com/AlexNabokikh/tfsort/actions/workflows/release.yml/badge.svg)](https://github.com/AlexNabokikh/tfsort/actions/workflows/release.yml/badge.svg)
[![badge-gh-tests](https://github.com/AlexNabokikh/tfsort/actions/workflows/test.yml/badge.svg)](https://github.com/AlexNabokikh/tfsort/actions/workflows/test.yml/badge.svg)
[![go-report-card](https://goreportcard.com/badge/github.com/AlexNabokikh/tfsort)](https://goreportcard.com/report/github.com/AlexNabokikh/tfsort)

![Logo](files/logo.png)

tfsort is a command-line utility that sorts Terraform variables and outputs in a .tf file.
Expand Down

0 comments on commit 9066b22

Please sign in to comment.