ci: debug #612
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
paths-ignore: ["**.md"] | |
pull_request: | |
branches: [main] | |
paths-ignore: ["**.md"] | |
concurrency: | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
HOMEBREW_CACHE: /home/runner/.cache/Homebrew | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up repo | |
uses: actions/checkout@v3 | |
- name: Set up cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.HOMEBREW_CACHE }} | |
key: ${{ runner.os }}-brew-1 | |
restore-keys: ${{ runner.os }}-brew-1 | |
- name: Set up Homebrew | |
run: echo /home/linuxbrew/.linuxbrew/bin >> $GITHUB_PATH | |
- name: Install deps | |
run: brew install fish | |
- name: Lint | |
uses: pre-commit/action@v3.0.0 | |
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 ${{ github.repository }} | |
- run: yadm checkout ${{ github.head_ref }} | |
- run: 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 |