Skip to content

Commit 17423c9

Browse files
author
Emmanuel T Odeke
authored
Merge pull request #5 from cuonglm/cuonglm/add-github-action
2 parents 9d75de8 + e40f46e commit 17423c9

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
test:
11+
name: Test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: 1.16.x
18+
- name: Cache
19+
uses: actions/cache@v2
20+
with:
21+
path: |
22+
~/go/bin
23+
~/go/src
24+
~/go/pkg/mod
25+
~/.cache/go-build
26+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27+
restore-keys: |
28+
${{ runner.os }}-go-
29+
- run: go test -race -v ./...
30+
lint:
31+
name: Lint
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: golangci/golangci-lint-action@v2

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# httperroryzer
2+
3+
![Build status](https://github.com/orijtech/httperroryzer/actions/workflows/ci.yml/badge.svg?branch=main)
4+
[![Go Reference](https://pkg.go.dev/badge/github.com/orijtech/httperroryzer.svg)](https://pkg.go.dev/github.com/orijtech/httperroryzer)
5+
26
Static analyzer to catch invalid uses of http.Error without a return statement which can cause expected bugs
37

48
## Example

0 commit comments

Comments
 (0)