Skip to content

feat(neovim): update plugins #185

feat(neovim): update plugins

feat(neovim): update plugins #185

Workflow file for this run

name: 'Neovim Benchmark'
on:
workflow_dispatch:
push:
branches:
- master
paths:
- neovim/**
- .github/**
pull_request:
paths:
- neovim/**
- .github/**
permissions:
contents: write
pages: write
id-token: write
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- name: '[Setup > repo] Checkout'
uses: actions/checkout@v3
- name: '[Setup > vim-startuptime] Download'
run: wget https://github.com/rhysd/vim-startuptime/releases/download/v1.3.2/vim-startuptime_1.3.2_linux_amd64.tar.gz
- name: '[Setup > vim-startuptime] Extract'
run: tar -xvf vim-startuptime_1.3.2_linux_amd64.tar.gz
- name: '[Setup > vim-startuptime] Install'
run: |
mv vim-startuptime /usr/local/bin/vim-startuptime
chmod +x /usr/local/bin/vim-startuptime
- name: '[Setup > Neovim]'
uses: rhysd/action-setup-vim@v1
with:
neovim: true
- name: '[Setup > Neovim] Install config'
run: ./dotfiles install neovim
- name: '[Setup > Neovim] Install plugins'
run: nvim --headless -c 'Lazy! restore' -c 'qall'
- name: '[Benchmark]'
run: vim-startuptime -vimpath nvim | tee ../result.txt
env:
TERM: screen-256color
- name: '[Benchmark > Post] Download past results'
run: |
wget https://raw.githubusercontent.com/yuma140902/dotfiles-public/gh-pages/docs/benchmarks.json
- name: '[Benchmark > Post] Parse result'
run: python .github/scripts/vim_startuptime_to_json.py -i ../result.txt -o ./benchmarks.json -b ${GITHUB_REF}
env:
TZ: Asia/Tokyo
- name: '[Pages] Checkout gh-pages'
run: |
cd ..
git clone https://github.com/yuma140902/dotfiles-public --branch gh-pages --depth 1 gh-pages
- name: '[Pages] Setup git config'
run: |
cd ../gh-pages
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
env:
PAT: ${{ secrets.PAT }}
- name: '[Pages] Copy benchmarks.json'
run: |
rm ../gh-pages/docs/benchmarks.json
cp benchmarks.json ../gh-pages/docs/benchmarks.json
- name: '[Pages] Commit benchmarks.json'
run: |
cd ../gh-pages
git add docs/benchmarks.json
git commit -m "update benchmarks.json (${GITHUB_REF}) [skip ci]"
- name: '[Pages] Push'
run: |
cd ../gh-pages
git remote add tmp "https://yuma140902:${{ secrets.PAT }}@github.com/yuma140902/dotfiles-public.git"
git push tmp gh-pages