Skip to content

Commit

Permalink
Replace test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
sergerad committed Nov 23, 2023
1 parent 9d556e0 commit f78bd02
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 39 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/coverage.yaml → .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generate code coverage badge
name: Test src and generate coverage badge

on:
pull_request:
Expand All @@ -21,6 +21,14 @@ jobs:
with:
go-version-file: 'go.mod'

- name: Run lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55

- name: Go build
run: go build -v ./...

- name: Run Test
run: |
go test -v ./... -covermode=count -coverprofile=coverage.out
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/test.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Relax
![Coverage](https://img.shields.io/badge/Coverage-100.0%25-brightgreen)
#### *...there's no need to panic.*

![Coverage](https://img.shields.io/badge/Coverage-100.0%25-brightgreen)

In some situations, encountering a panic can be problematic. For example:
* If your REST server panics while handling a POST request, you may end up with a dangling resource in your database;
* Applications that write state to filesystems may produce irrecoverable state if a series of dependant file writes is interrupted by a panic; and
Expand Down

0 comments on commit f78bd02

Please sign in to comment.