Skip to content

Commit

Permalink
add test action
Browse files Browse the repository at this point in the history
  • Loading branch information
vigo committed Dec 26, 2024
1 parent fa80509 commit 4201b2e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test go code

on:
pull_request:
paths:
- '**.go'
push:
branches:
- main
tags-ignore:
- '**'
paths:
- '**.go'

concurrency:
group: basichttpdebugger-go-test
cancel-in-progress: true

jobs:
test:
name: Run tests
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
id: go

- name: Run tests
run: go test -v -coverprofile=coverage.txt ./...

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: vbyazilim/basichttpdebugger
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[![Build and push to GitHub CR](https://github.com/vbyazilim/basichttpdebugger/actions/workflows/push-to-github-cr.yml/badge.svg)](https://github.com/vbyazilim/basichttpdebugger/actions/workflows/push-to-github-cr.yml)
![Powered by Rake](https://img.shields.io/badge/powered_by-rake-blue?logo=ruby)
[![Go Report Card](https://goreportcard.com/badge/github.com/vbyazilim/basichttpdebugger)](https://goreportcard.com/report/github.com/vbyazilim/basichttpdebugger)
[![codecov](https://codecov.io/gh/vbyazilim/basichttpdebugger/graph/badge.svg?token=AGNIW2SA8J)](https://codecov.io/gh/vbyazilim/basichttpdebugger)

# Basic HTTP Debugger

Expand Down

0 comments on commit 4201b2e

Please sign in to comment.