Skip to content

chore(deps): bump github/super-linter from 5 to 6 (#418) #1366

chore(deps): bump github/super-linter from 5 to 6 (#418)

chore(deps): bump github/super-linter from 5 to 6 (#418) #1366

Workflow file for this run

name: Benchmark
on:
push:
branches:
- main
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
env:
OUTPUT_FILE: output.txt
steps:
- uses: actions/checkout@v4
- uses: nick-fields/retry@v2
name: Install hyperfine
with:
timeout_minutes: 10
max_attempts: 3
retry_on: error
# yamllint disable rule:line-length
command: |
curl -s https://api.github.com/repos/sharkdp/hyperfine/releases/latest \
| jq -r '.assets[] | select(.name? | match("hyperfine-musl_.*_amd64.deb")) | .browser_download_url' \
| wget -qi - -O hyperfine.deb
sudo dpkg -i hyperfine.deb
# yamllint enable rule:line-length
- uses: nick-fields/retry@v2
name: Chezmoi init & apply
with:
timeout_minutes: 10
max_attempts: 3
retry_on: error
command: ./install.sh
- name: Run benchmark
run: |
TEMP_FILE=$(mktemp)
nvim="${XDG_DATA_HOME:-$HOME/.local/share}/rtx/installs/neovim/nightly/bin/nvim"
hyperfine "$nvim"' --headless -c quitall' \
--export-json "$TEMP_FILE" \
--warmup 5 \
--min-runs 15 \
--show-output
MEAN=$(jq .results[].mean < "$TEMP_FILE")
cat <<EOF >"$OUTPUT_FILE"
[
{
"name": "Neovim startup time - Mean",
"unit": "Second",
"value": $MEAN
}
]
EOF
- name: Upload benchmark
uses: benchmark-action/github-action-benchmark@v1
with:
tool: customSmallerIsBetter
output-file-path: ${{ env.OUTPUT_FILE }}
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
comment-on-alert: true
fail-on-alert: true
alert-threshold: '150%'
alert-comment-cc-users: '@gametaro'