Skip to content

Commit

Permalink
CI: Update benchmark (#3590)
Browse files Browse the repository at this point in the history
  • Loading branch information
yutkat authored Sep 17, 2024
1 parent 815d1cb commit 2b1b0a2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .config/gh/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ aliases:
!git switch -c dev && gh pr-quick && gh merge-quick
merge-and-count-up: |
!current_branch=$(git branch --show-current) &&
gh pr merge --rebase --delete-branch &&
gh pr merge --squash --delete-branch &&
git pull --rebase -S origin "$(basename "$(git symbolic-ref --short refs/remotes/origin/HEAD)")" &&
git switch -c $(echo ${current_branch} | cut -d "." -f 1)"."$(printf "%03d" $(expr $(echo ${current_branch} | cut -d "." -f 2) + 1))
renew: |
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ jobs:
run: ~/.local/share/zsh/zinit/plugins/neovim---neovim/nvim-linux64/bin/nvim --headless -c 'lua require("lazy").restore({wait = true})' -c 'qall'
- name: Install packages required benchmark
run: pacman -S --noconfirm time
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Run benchmark
run: ./.github/scripts/benchmark.sh
env:
Expand All @@ -75,14 +80,15 @@ jobs:
with:
tool: customSmallerIsBetter
output-file-path: /tmp/result-benchmark.json
github-token: ${{ secrets.GITHUB_TOKEN }}
benchmark-data-dir-path: .github/pages/dev/bench
gh-pages-branch: main
auto-push: false
comment-on-alert: true
fail-on-alert: false
alert-threshold: "150%"
alert-comment-cc-users: "@yutkat"
external-data-json-path: ./cache/benchmark-data.json
#github-token: ${{ secrets.GITHUB_TOKEN }}
#benchmark-data-dir-path: .github/pages/dev/bench
#gh-pages-branch: gh-pages
#auto-push: true
#comment-on-alert: true
#fail-on-alert: false
#alert-threshold: "150%"
#alert-comment-cc-users: "@yutkat"
- name: find
run: find .
- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 2b1b0a2

Please sign in to comment.