Skip to content

Commit

Permalink
fixup! chore: add test job at CI
Browse files Browse the repository at this point in the history
  • Loading branch information
YasminTeles committed Mar 10, 2024
1 parent 57060f4 commit 51070d9
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
Tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-11]
include:
- os: macOS-latest
shell: bash
Expand All @@ -33,30 +33,33 @@ jobs:
run:
shell: ${{ matrix.shell }}
steps:
- name: Clean up linuxOS
if: runner.os != 'macOS'
run: sudo apt-get install build-essential
# - name: Clean up linuxOS
# if: runner.os != 'macOS'
# run: sudo apt-get install build-essential

- name: Cleanup macOS
if: runner.os == 'macOS'
run: |
sudo rm -rf /Applications/Xcode.app \
/Library/Developer/CommandLineTools
sudo xcode-select --reset
# - name: Cleanup macOS
# if: runner.os == 'macOS'
# run: |
# sudo rm -rf /Applications/Xcode.app \
# /Library/Developer/CommandLineTools
# sudo xcode-select --reset

- name: Install Homebrew
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
env:
NONINTERACTIVE: 1
# - name: Install Homebrew
# run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# env:
# NONINTERACTIVE: 1

- name: Set up Homebrew PATH
run: |
if [[ "${{ runner.os }}" = "macOS" ]]
then
echo "/usr/local/bin:/usr/bin:/bin" >> "${GITHUB_PATH}"
else
echo "/home/linuxbrew/.linuxbrew/bin:/usr/bin:/bin" >> "${GITHUB_PATH}"
fi
# - name: Set up Homebrew PATH
# run: |
# if [[ "${{ runner.os }}" = "macOS" ]]
# then
# echo "/usr/local/bin:/usr/bin:/bin" >> "${GITHUB_PATH}"
# else
# echo "/home/linuxbrew/.linuxbrew/bin:/usr/bin:/bin" >> "${GITHUB_PATH}"
# fi

- name: Check Homebrew
run: brew --config

- name: Run install script
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/main/install.sh)"
Expand Down

0 comments on commit 51070d9

Please sign in to comment.