wip: added zsh to gh action viii #241
Workflow file for this run
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: Test | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
macbook: | |
runs-on: macos-latest | |
defaults: | |
run: | |
shell: zsh {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install Ansible | |
run: pip install ansible | |
- name: Check Ansible path | |
run: echo 'export PATH="$(python3 -m site --user-base)/bin:$PATH"' >> $GITHUB_ENV | |
- name: Installs ansible and pip | |
run: ansible-galaxy collection install -r requirements.yml | |
- name: makes this target | |
run: ansible-playbook thiscomputer.yml -i hosts -e "hostname=github-runner" | |
- name: Runs the debug target | |
run: make debug | |
- name: runs the terminal target | |
run: make terminal | |
- name: runs the aliases target | |
run: make aliases | |
- name: cat zshrc | |
run: cat ~/.macfair/version | |
- name: runs the newcomputer target with vars to bypass prompt | |
run: ansible-playbook newcomputer.yml -i hosts -e "target=dox.io37.ch" -e "user=deploy" -e "group=debian" | |
- name: source zshrc | |
run: source ~/.zshrc && which aliases | |
shell: zsh {0} | |
- name: cat zshrc | |
run: cat ~/.zshrc | |
- name: ls zsh | |
run: ls ~/.zsh | |
- name: echo SHELL | |
run: echo $ZSH_VERSION | |
- name: echo SHELL | |
run: echo $ZSH_VERSION | |
shell: zsh {0} | |
- name: grep for function | |
run: grep aliases ~/.zsh/main.zsh | |
- name: find a command | |
run: which aliases | |
shell: zsh {0} | |
- name: run a command | |
run: aliases | |
shell: zsh {0} |