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 9, 2024
1 parent f9eb7ac commit bba25c8
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

Test:
runs-on: ${{ matrix.os }}
Tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
Expand All @@ -29,12 +28,33 @@ jobs:
shell: bash
- os: ubuntu-latest
shell: bash
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- name: Clean up macOS
if: runner.os == 'macOS'
run: |
sudo rm -rf /Applications/Xcode.app \
/Library/Developer/CommandLineTools
sudo xcode-select --reset
- name: Clean up linuxOS
if: runner.os == 'ubuntu'
run: sudo apt-get install build-essential

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

- name: Set up Homebrew
if: runner.os == 'ubuntu'
run: |
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/runner/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
- name: Run install script
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/HEAD/install.sh)"
env:
Expand Down

0 comments on commit bba25c8

Please sign in to comment.