Skip to content

Commit d0cbc78

Browse files
authored
Setup Github Actions based CI (#456)
* .github/workflows: CI * fixup! Set FUZZIT_API_KEY * fixup! Test on ubuntu only * fixup! Update fuzzit * fixup! Only test on latest Go version * fixup! Rename to ci * fixup! Remove travis and fuzzit * fixup! Update deepsource analyzers * fixup! Update badge * fixup! Remove race
1 parent 83a3ce9 commit d0cbc78

File tree

7 files changed

+41
-102
lines changed

7 files changed

+41
-102
lines changed

.deepsource.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@ version = 1
33
[[analyzers]]
44
name = "python"
55
enabled = true
6-
runtime_version = "3.x.x"
6+
7+
[analyzers.meta]
8+
runtime_version = "3.x.x"
9+
10+
[[analyzers]]
11+
name = "go"
12+
enabled = true
13+
14+
[analyzers.meta]
15+
import_paths = ["github.com/tsenart/vegeta"]

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on: [push, pull_request]
2+
name: CI
3+
jobs:
4+
ci:
5+
strategy:
6+
matrix:
7+
go-version: [1.13.x]
8+
platform: [ubuntu-latest]
9+
runs-on: ${{ matrix.platform }}
10+
steps:
11+
- name: Install Go
12+
uses: actions/setup-go@v1
13+
with:
14+
go-version: ${{ matrix.go-version }}
15+
- name: Checkout code
16+
uses: actions/checkout@v1
17+
- name: Vet
18+
run: go vet ./...
19+
- name: Test
20+
run: go test -race -v ./...

.goreleaser.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Vegeta [![Build Status](https://secure.travis-ci.org/tsenart/vegeta.svg?branch=master)](http://travis-ci.org/tsenart/vegeta) [![Fuzzit Status](https://app.fuzzit.dev/badge?org_id=vegeta)](https://app.fuzzit.dev/orgs/vegeta/dashboard) [![Go Report Card](https://goreportcard.com/badge/github.com/tsenart/vegeta)](https://goreportcard.com/report/github.com/tsenart/vegeta) [![GoDoc](https://godoc.org/github.com/tsenart/vegeta?status.svg)](https://godoc.org/github.com/tsenart/vegeta) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tsenart/vegeta?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Donate](https://img.shields.io/badge/donate-bitcoin-yellow.svg)](#donate)
1+
# Vegeta [![Build Status](https://github.com/tsenart/vegeta/workflows/ci/badge.svg)](https://github.com/tsenart/vegeta/actions) [![Go Report Card](https://goreportcard.com/badge/github.com/tsenart/vegeta)](https://goreportcard.com/report/github.com/tsenart/vegeta) [![GoDoc](https://godoc.org/github.com/tsenart/vegeta?status.svg)](https://godoc.org/github.com/tsenart/vegeta) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tsenart/vegeta?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Donate](https://img.shields.io/badge/donate-bitcoin-yellow.svg)](#donate)
22

33
Vegeta is a versatile HTTP load testing tool built out of a need to drill
44
HTTP services with a constant request rate.
@@ -466,7 +466,14 @@ All duration like fields are in nanoseconds.
466466
"max": 3660505,
467467
"min": 1949582
468468
},
469-
"buckets": {"0":9952,"1000000":40,"2000000":6,"3000000":0,"4000000":0,"5000000":2},
469+
"buckets": {
470+
"0": 9952,
471+
"1000000": 40,
472+
"2000000": 6,
473+
"3000000": 0,
474+
"4000000": 0,
475+
"5000000": 2
476+
},
470477
"bytes_in": {
471478
"total": 606700,
472479
"mean": 6067

fuzzit.sh

Lines changed: 0 additions & 40 deletions
This file was deleted.

lib/results_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ func TestResultDecoding(t *testing.T) {
5353
}
5454

5555
func TestResultEncoding(t *testing.T) {
56+
t.Parallel()
57+
5658
newStdJSONEncoder := func(w io.Writer) Encoder {
5759
enc := json.NewEncoder(w)
5860
return func(r *Result) error { return enc.Encode(r) }
@@ -79,8 +81,6 @@ func TestResultEncoding(t *testing.T) {
7981
} {
8082
tc := tc
8183
t.Run(tc.encoding, func(t *testing.T) {
82-
t.Parallel()
83-
8484
rapid.Check(t, func(t *rapid.T) {
8585
hdrs := rapid.MapOf(
8686
rapid.StringMatching(`([\w-]+)`),

0 commit comments

Comments
 (0)