diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 7f5bf7b59..5a2807f88 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -22,3 +22,5 @@ jobs: - name: Check workflow files run: ${{ steps.get_actionlint.outputs.executable }} -color shell: bash + env: + SHELLCHECK_OPTS: --exclude=SC2016 diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 5b21f5caf..7396d01f2 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -46,5 +46,29 @@ jobs: - name: Install VHS run: go install github.com/charmbracelet/vhs@latest + - name: Install Nerd Font + run: | + mkdir -p ~/.local/share/fonts + wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/FiraCode.zip + unzip FiraCode.zip -d ~/.local/share/fonts/ + fc-cache -fv + + - name: Install Zsh + run: sudo apt update && sudo apt install -y zsh + + - name: Install zsh-syntax-highlighting + run: | + git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/z + echo 'source ~/z/zsh-syntax-highlighting.zsh' >> ~/.zshrc + + - name: Install Starship + run: | + curl -sS https://starship.rs/install.sh | sh -s -- -y + echo 'eval "$(starship init zsh)"' >> ~/.zshrc + + - name: Move demo.tape + run: mv demo.tape ${{ runner.temp }} + - name: Generate and publish a new demo run: vhs --publish demo.tape + working-directory: ${{ runner.temp }} diff --git a/demo.tape b/demo.tape index e03d45d09..7788e9cd8 100644 --- a/demo.tape +++ b/demo.tape @@ -57,12 +57,24 @@ Output demo.gif +Require zsh +Require starship Require cabin -Set Shell "bash" -Set FontSize 32 -Set Width 1600 -Set Height 800 +Set Shell "zsh" +Set FontSize 16 +Set FontFamily "FiraCode Nerd Font" +Set Width 800 +Set Height 450 +Set WindowBar Colorful +Set Padding 20 +Set Margin 20 +Set MarginFill "#000000" +Set BorderRadius 10 + +Hide +Type "source ~/.zshrc && clear" Enter +Show Type "cabin version" Sleep 500ms Enter Sleep 1s Type "cabin new hello_world" Sleep 500ms Enter Sleep 1s