Mercurial > dotfiles
changeset 674:5631c3f65dc1
Add checks for applying config (#2)
author | Zeger Van de Vannet <747627+zegervdv@users.noreply.github.com> |
---|---|
date | Thu, 29 Sep 2022 23:04:45 +0200 |
parents | e258ef0fb4cd |
children | 6c07661fbc1f |
files | .chezmoiignore .github/workflows/test.yml dot_Brewfile |
diffstat | 3 files changed, 39 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.chezmoiignore Thu Sep 29 23:03:11 2022 +0200 +++ b/.chezmoiignore Thu Sep 29 23:04:45 2022 +0200 @@ -1,3 +1,4 @@ +.github README.md *.orig **/.orig
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.github/workflows/test.yml Thu Sep 29 23:04:45 2022 +0200 @@ -0,0 +1,37 @@ +name: Environment build test + +on: + push: + +jobs: + install: + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Set up Homebrew + uses: Homebrew/actions/setup-homebrew@master + + - name: Install chezmoi + run: brew install chezmoi + + - 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 + + - name: Initialize chezmoi + run: chezmoi init -v zegervdv --branch ${GITHUB_REF##*/} + + - name: add tap manually + run: brew tap zegervdv/tools + + - name: Apply dotfiles + run: chezmoi apply -v