Mercurial > dotfiles
comparison .github/workflows/test.yml @ 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 | |
children | 6c07661fbc1f |
comparison
equal
deleted
inserted
replaced
673:e258ef0fb4cd | 674:5631c3f65dc1 |
---|---|
1 name: Environment build test | |
2 | |
3 on: | |
4 push: | |
5 | |
6 jobs: | |
7 install: | |
8 strategy: | |
9 matrix: | |
10 os: [ubuntu-latest, macos-latest] | |
11 runs-on: ${{ matrix.os }} | |
12 steps: | |
13 - name: Set up Homebrew | |
14 uses: Homebrew/actions/setup-homebrew@master | |
15 | |
16 - name: Install chezmoi | |
17 run: brew install chezmoi | |
18 | |
19 - name: Bootstrap environment | |
20 run: | | |
21 mkdir -p $HOME/.config/chezmoi/ | |
22 mkdir -p $HOME/.local/share | |
23 touch $HOME/.config/chezmoi/chezmoi.toml | |
24 echo ' [data]' >> $HOME/.config/chezmoi/chezmoi.toml | |
25 echo ' email = "[email protected]"' >> $HOME/.config/chezmoi/chezmoi.toml | |
26 echo ' name = "jdoe"' >> $HOME/.config/chezmoi/chezmoi.toml | |
27 echo ' signingkey = "" ' >> $HOME/.config/chezmoi/chezmoi.toml | |
28 echo ' font_size = "10"' >> $HOME/.config/chezmoi/chezmoi.toml | |
29 | |
30 - name: Initialize chezmoi | |
31 run: chezmoi init -v zegervdv --branch ${GITHUB_REF##*/} | |
32 | |
33 - name: add tap manually | |
34 run: brew tap zegervdv/tools | |
35 | |
36 - name: Apply dotfiles | |
37 run: chezmoi apply -v |