Skip to content

Commit

Permalink
Add benchmark workflow (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ authored Nov 19, 2022
1 parent 6a72ad7 commit b7dc1d9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Dubbo Benchmark

on:
workflow_dispatch:
schedule:
- cron: '0/5 * * * *'

jobs:
benchmark:
runs-on: ubuntu-latest
name: Run Benchmark and Report
steps:
- uses: actions/checkout@v2
- name: Generate Report
run: |
mkdir benchmark
filename=benchmark_$(date +%Y%m%d)_$(date +%H%M%S)
echo "#Benchmark Report" > benchmark/$filename.md
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: report/benchmark
publish_dir: ./benchmark
destination_dir: benchmark
keep_files: true

0 comments on commit b7dc1d9

Please sign in to comment.