wip: checking hostname of gh action vi #222
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 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Print the readme | |
run: make help | |
- name: Installs ansible and pip | |
run: make update | |
- name: makes this target | |
run: $(python3 -m site --user-base)/bin/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: $(python3 -m site --user-base)/bin/ansible-playbook newcomputer.yml -i hosts -e "target=dox.io37.ch" -e "user=deploy" -e "group=debian" | |
- name: Show hostname | |
run: hostname | |
- name: Switch to Zsh shell | |
run: | | |
echo "Hello from Zsh" | |
shell: zsh | |
- name: source zshrc | |
run: source ~/.zshrc | |
- name: run a command | |
run: aliases |