Skip to content

Commit

Permalink
add workflow for Go example
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Nov 9, 2019
1 parent 6425d89 commit 272a680
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Go Example
on: [push]

jobs:
benchmark:
name: Run Go benchmark example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-go@v1
- uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
- run: npm run build
- name: Run benchmark
run: cd examples/go && go test -bench 'BenchmarkFib' | tee output.txt
- name: Store benchmark result
uses: ./
with:
name: Go Benchmark
tool: 'go'
output-file-path: examples/go/output.txt
- name: Push benchmark result
run: git push 'https://rhysd:${{ secrets.GITHUB_TOKEN }}@github.com/rhysd/github-action-benchmark.git' gh-pages:gh-pages
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Rust Example
on: [push]

jobs:
hello_world_job:
benchmark:
name: Run Rust benchmark example
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 272a680

Please sign in to comment.