github.com/phuslu/fastdns@v0.8.3-0.20240310041952-69506fc67dd1/.github/workflows/benchmark.yml (about) 1 name: benchmark 2 3 on: 4 schedule: 5 - cron: '0 0 * * *' 6 push: 7 branches: 8 - master 9 10 jobs: 11 benchmark: 12 runs-on: ubuntu-latest 13 steps: 14 - uses: actions/setup-go@v2 15 with: 16 go-version: '1.22.1' 17 - name: Benchmark 18 run: | 19 set -ex 20 git clone --depth=1 https://github.com/${GITHUB_REPOSITORY} 21 cd $(basename ${GITHUB_REPOSITORY}) 22 go test -v -run=none -benchmem -bench=.