feat(kubes): alias ka #161
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: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
# remove the packages that are already in the environment so we can install them. | |
# relink brew python packages - these are already installed but overwritten. | |
# we need them because they are dependencies of packages in the Brewfile | |
# see https://github.com/actions/runner-images | |
- name: reset runner environment | |
run: | | |
rm -f /usr/local/bin/aws | |
rm -f /usr/local/bin/aws_completer | |
rm -f /usr/local/bin/go | |
rm -f /usr/local/bin/gofmt | |
brew unlink [email protected] [email protected] | |
brew link --overwrite [email protected] [email protected] | |
rm "$HOME/.gitconfig" | |
brew unlink git | |
# fixes https://github.com/zsh-users/zsh-completions/issues/433 | |
# which causes compinit: initialization aborted | |
- name: fix insecure directories | |
run: | | |
chmod go-w /usr/local/share/zsh/site-functions /usr/local/share/zsh | |
- name: fix build to work with setup-mac | |
run: | | |
mkdir -p "$HOME/.zshrc.d" | |
touch "$HOME/.zshrc.d/auth.plugin.zsh" | |
touch "$HOME/.zshrc.d/aws-doctor.plugin.zsh" | |
touch "$HOME/.zshrc.d/functions.plugin.zsh" | |
touch "$HOME/.zshrc.d/git-doctor.plugin.zsh" | |
touch "$HOME/.zshrc.d/setup.plugin.zsh" | |
- name: install.sh | |
run: ./install.sh | |
- name: Setup tmate session | |
if: ${{ github.event_name == 'workflow_dispatch' && failure() }} | |
uses: mxschmitt/action-tmate@v3 |