diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 97d397f..4692275 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,14 +16,18 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v1 - - name: Test - run: | - go test ./... - - name: Build run: | go build ./... + - name: Generate toml file + run: | + ./kataribe -generate + + - name: Test + run: | + go test ./... + - name: Upload release if: startsWith(github.ref, 'refs/tags/v') env: @@ -36,7 +40,7 @@ jobs: for arch in 386 amd64 arm ; do echo Build for ${os}/${arch} GOOS="${os}" GOARCH="${arch}" go build ./... - zip -q releases/kataribe-${ver}_${os}_${arch}.zip kataribe kataribe.toml LICENSE README.md + zip -q releases/kataribe-${ver}_${os}_${arch}.zip kataribe LICENSE README.md rm kataribe done done @@ -44,7 +48,7 @@ jobs: for arch in 386 amd64 ; do echo Build for ${os}/${arch} GOOS="${os}" GOARCH="${arch}" go build ./... - zip -q releases/kataribe-${ver}_${os}_${arch}.zip kataribe kataribe.toml LICENSE README.md + zip -q releases/kataribe-${ver}_${os}_${arch}.zip kataribe LICENSE README.md rm kataribe done done @@ -52,7 +56,7 @@ jobs: for arch in 386 amd64 ; do echo Build for ${os}/${arch} GOOS="${os}" GOARCH="${arch}" go build ./... - zip -q releases/kataribe-${ver}_${os}_${arch}.zip kataribe.exe kataribe.toml LICENSE README.md + zip -q releases/kataribe-${ver}_${os}_${arch}.zip kataribe.exe LICENSE README.md rm kataribe.exe done done diff --git a/kataribe.toml b/kataribe.toml deleted file mode 100644 index 3472410..0000000 --- a/kataribe.toml +++ /dev/null @@ -1,63 +0,0 @@ -# Top Ranking Group By Request -ranking_count = 20 - -# Top Slow Requests -slow_count = 37 - -# Show Standard Deviation column -show_stddev = true - -# Show HTTP Status Code columns -show_status_code = true - -# Show HTTP Response Bytes columns -show_bytes = true - -# Percentiles -percentiles = [ 50.0, 90.0, 95.0, 99.0 ] - -# for Nginx($request_time) -scale = 0 -effective_digit = 3 - -# for Apache(%D) and Varnishncsa(%D) -#scale = -6 -#effective_digit = 6 - -# for Rack(Rack::CommonLogger) -#scale = 0 -#effective_digit = 4 - - -# combined + duration -# Nginx example: '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $request_time' -# Apache example: "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" -# H2O example: "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\" %{duration}x" -# Varnishncsa example: '%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i" %D' -log_format = '^([^ ]+) ([^ ]+) ([^ ]+) \[([^\]]+)\] "((?:\\"|[^"])*)" (\d+) (\d+|-) "((?:\\"|[^"])*)" "((?:\\"|[^"])*)" ([0-9.]+)$' - -request_index = 5 -status_index = 6 -bytes_index = 7 -duration_index = 10 - -# Rack example: use Rack::CommonLogger, Logger.new("/tmp/app.log") -#log_format = '^([^ ]+) ([^ ]+) ([^ ]+) \[([^\]]+)\] "((?:\\"|[^"])*)" (\d+) (\d+|-) ([0-9.]+)$' -#request_index = 5 -#status_index = 6 -#bytes_index = 7 -#duration_index = 8 - -# You can aggregate requests by regular expression -# For overview of regexp syntax: https://golang.org/pkg/regexp/syntax/ -[[bundle]] -regexp = '^(GET|HEAD) /memo/[0-9]+\b' -name = "get memo" - -[[bundle]] -regexp = '^(GET|HEAD) /stylesheets/' -name = "stylesheets" - -[[bundle]] -regexp = '^(GET|HEAD) /images/' -name = "images"