Skip to content

Commit

Permalink
Setup Github Actions based CI (tsenart#456)
Browse files Browse the repository at this point in the history
* .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
  • Loading branch information
tsenart authored Oct 11, 2020
1 parent 83a3ce9 commit d0cbc78
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 102 deletions.
11 changes: 10 additions & 1 deletion .deepsource.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,13 @@ version = 1
[[analyzers]]
name = "python"
enabled = true
runtime_version = "3.x.x"

[analyzers.meta]
runtime_version = "3.x.x"

[[analyzers]]
name = "go"
enabled = true

[analyzers.meta]
import_paths = ["github.com/tsenart/vegeta"]
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on: [push, pull_request]
name: CI
jobs:
ci:
strategy:
matrix:
go-version: [1.13.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Vet
run: go vet ./...
- name: Test
run: go test -race -v ./...
35 changes: 0 additions & 35 deletions .goreleaser.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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)
# 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)

Vegeta is a versatile HTTP load testing tool built out of a need to drill
HTTP services with a constant request rate.
Expand Down Expand Up @@ -466,7 +466,14 @@ All duration like fields are in nanoseconds.
"max": 3660505,
"min": 1949582
},
"buckets": {"0":9952,"1000000":40,"2000000":6,"3000000":0,"4000000":0,"5000000":2},
"buckets": {
"0": 9952,
"1000000": 40,
"2000000": 6,
"3000000": 0,
"4000000": 0,
"5000000": 2
},
"bytes_in": {
"total": 606700,
"mean": 6067
Expand Down
40 changes: 0 additions & 40 deletions fuzzit.sh

This file was deleted.

4 changes: 2 additions & 2 deletions lib/results_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ func TestResultDecoding(t *testing.T) {
}

func TestResultEncoding(t *testing.T) {
t.Parallel()

newStdJSONEncoder := func(w io.Writer) Encoder {
enc := json.NewEncoder(w)
return func(r *Result) error { return enc.Encode(r) }
Expand All @@ -79,8 +81,6 @@ func TestResultEncoding(t *testing.T) {
} {
tc := tc
t.Run(tc.encoding, func(t *testing.T) {
t.Parallel()

rapid.Check(t, func(t *rapid.T) {
hdrs := rapid.MapOf(
rapid.StringMatching(`([\w-]+)`),
Expand Down

0 comments on commit d0cbc78

Please sign in to comment.