Skip to content

Commit

Permalink
test: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kuramitsu-v committed Apr 14, 2024
1 parent ae8771b commit 7e03f42
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: benchmark

on: [push,workflow_dispatch]

permissions:
# deployments permission to deploy GitHub pages website
deployments: write
# contents permission to update benchmark contents in gh-pages branch
contents: write


jobs:
benchmark:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4

- name: install chezmoi
run: sh -c "$(curl -fsLS get.chezmoi.io)"

- run: chezmoi apply $HOME/.{zshrc,zshrc.lazy,zshenv,zprofile}

- run: |
cat $HOME/.zshrc
cat $HOME/.zshrc.lazy
cat $HOME/.zshenv
cat $HOME/.zprofile
# - name: Run benchmark
# run: ./scripts/benchmark.sh > result.json

# - name: Dump result.json
# run: cat result.json

# - name: Upload benchmark
# uses: benchmark-action/github-action-benchmark@v1
# with:
# tool: customSmallerIsBetter
# output-file-path: result.json
# github-token: ${{ secrets.GITHUB_TOKEN }}
# auto-push: true
# comment-on-alert: true
# fail-on-alert: true
# alert-threshold: '150%'
# alert-comment-cc-users: '@odanado'

0 comments on commit 7e03f42

Please sign in to comment.