Skip to content

Commit

Permalink
ci: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Jul 11, 2023
1 parent 8e19381 commit e12dac6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
7 changes: 4 additions & 3 deletions .config/yadm/bootstrap.d/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ if ! has brew; then
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

debug "Checking Homebrew packages"
debug "Installing Homebrew packages"
export HOMEBREW_BUNDLE_FILE=~/.config/brew/Brewfile
if ! has yadm || ! brew bundle check &>/dev/null; then
debug "Installing Homebrew packages"
if [ -n "${CI:-}" ]; then
debug "Skipped due to \$CI"
elif ! has yadm || ! brew bundle check &>/dev/null; then
brew bundle install --no-lock
fi

Expand Down
33 changes: 24 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,27 @@ jobs:
run: brew install fish
- name: Lint
uses: pre-commit/action@v3.0.0
# - name: Run bootstrap
# run: DEBUG=1 bash -x bootstrap
- run: echo "DEBUG=1" >> $GITHUB_ENV
- run: echo "HOME=$(mktemp -d)" >> $GITHUB_ENV
# - run: brew install yadm
# - run: yadm clone --bootstrap https://github.com/branchvincent/dotfiles
# - run: yadm status
# - run: yadm rev-parse --show-toplevel
# - run: yadm --yadm-bootstrap $HOME/.config/yadm/bootstrap bootstrap
bootstrap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: curl -fLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm && chmod a+x /usr/local/bin/yadm
- run: echo "HOME=$PWD/tmp" >> $GITHUB_ENV
# - run: DEBUG=1 bash -x ./bootstrap
# - run: DEBUG=1 bash -x yadm clone --bootstrap https://github.com/branchvincent/dotfiles
- run: yadm clone https://github.com/${{ github.repository }}
- run: yadm checkout ${{ github.head_ref }}
- run: bash -x yadm bootstrap
- run: tree ~
# - run: |
# yadm ls-files
# echo
# cd ~
# yadm ls-files --deleted
# - run: |
# yadm rev-parse --show-toplevel
# yadm introspect repo
# yadm ls-files --deleted
# cd "$(yadm rev-parse --show-toplevel)"
# pwd
# yadm status

0 comments on commit e12dac6

Please sign in to comment.