fixup! feat: add Homebrew #104
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: Check code health | |
on: | |
push: | |
branches: [master, main] | |
jobs: | |
Scan: | |
name: Secrets Scan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Scan the repository to find hardcoded secrets | |
uses: gitleaks/gitleaks-action@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
Tests: | |
runs-on: macos-14 | |
timeout-minutes: 50 | |
steps: | |
- name: Clean up installed software | |
run: | | |
brew uninstall --ignore-dependencies --force $(brew list --formula) | |
# brew uninstall --cask --force $(brew list --cask) | |
brew uninstall --cask --force firefox google-chrome | |
brew cleanup --prune-prefix | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)" | |
- name: Run install script | |
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/main/install.sh)" | |
env: | |
CI: true | |
- name: Show the Home directory | |
run: | | |
cd ~ | |
ls -la | |
- name: Run uninstall script | |
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/main/uninstall.sh)" | |
env: | |
CI: true | |
- name: Show the Home directory | |
run: | | |
cd ~ | |
ls -la |