mirror of
https://github.com/khorevaa/logos.git
synced 2026-04-24 20:33:58 +02:00
25 lines
694 B
YAML
25 lines
694 B
YAML
name: benchmark
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
benchmark:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.15
|
|
- name: Benchmark
|
|
run: |
|
|
curl -sL https://github.com/${GITHUB_REPOSITORY}/raw/master/README.md | \
|
|
awk '{if($0 ~ "// go test -v"){a=1;b=1};if($0 ~ "```" && b=1){b=0};if (a&&b) {print}}' | \
|
|
tee log_test.go
|
|
go get github.com/${GITHUB_REPOSITORY}
|
|
go get github.com/phuslu/log
|
|
go get github.com/rs/zerolog
|
|
go get go.uber.org/zap
|
|
head -1 log_test.go | cut -b3- | sed -E 's#\r##' | bash -xe |