view .github/workflows/test.yml @ 876:8589883596fd

fix: remove pathdirs option to avoid slow path completions see: https://stackoverflow.com/questions/76746392/why-is-my-zsh-tab-completion-slow-on-commands-but-not-directories > Perform a path search even on command names with slashes in them. > Thus if ?/usr/local/bin? is in the user?s path, and he or she types ?X11/xinit?, the command ?/usr/local/bin/X11/xinit? will be executed (assuming it exists). > Commands explicitly beginning with ?/?, ?./? or ?../? are not subject to the path search. This also applies to the ?.? and source builtins.
author Zeger Van de Vannet <zeger@vandevan.net>
date Thu, 25 Apr 2024 10:05:40 +0200
parents 7810e6006a61
children
line wrap: on
line source

name: Environment build test

on:
  push:

jobs:
  install:
    strategy:
      matrix:
        os: [ubuntu-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - name: Install chezmoi
        run: sh -c "cd /usr/local && $(curl -fsLS get.chezmoi.io)"

      - name: Install system dependencies
        run: sudo apt install -y libsqlite3-dev
        if: matrix.os == 'ubuntu-latest'

      - name: Bootstrap environment
        run: |
          mkdir -p $HOME/.config/chezmoi/
          mkdir -p $HOME/.local/share
          touch $HOME/.config/chezmoi/chezmoi.toml
          echo '  [data]' >> $HOME/.config/chezmoi/chezmoi.toml
          echo '    email = "[email protected]"' >> $HOME/.config/chezmoi/chezmoi.toml
          echo '    name = "jdoe"' >> $HOME/.config/chezmoi/chezmoi.toml
          echo '    signingkey = "" ' >> $HOME/.config/chezmoi/chezmoi.toml
          echo '    font_size = "10"' >> $HOME/.config/chezmoi/chezmoi.toml
          echo '    dark = false' >> $HOME/.config/chezmoi/chezmoi.toml

      - name: Initialize chezmoi
        run: /usr/local/bin/chezmoi init -v zegervdv --branch ${GITHUB_REF##*/}

      - name: Apply dotfiles
        run: /usr/local/bin/chezmoi apply
        env:
          HOMEBREW_NO_INSTALL_FROM_API: 1