Skip to content

Commit

Permalink
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 5ddf6d2 commit a67a0a1
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,47 @@ jobs:
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

Tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
include:
- os: macOS-latest
shell: bash
- os: ubuntu-latest
shell: bash
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- 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: 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: Run install script
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/HEAD/install.sh)"
env:
CI: true
8 changes: 6 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ function step_msg {
}

# -- Get some information -----------------------------------------------------
printf "Please enter some information.\n"
read -p "What is your email? " GIT_EMAIL
if [ "$CI" = true ] ; then
[email protected]
else
printf "Please enter some information.\n"
read -p "What is your email? " GIT_EMAIL
fi

printf "\nPlease wait! It will configure your environment.\n"

Expand Down

0 comments on commit a67a0a1

Please sign in to comment.