From ca47fb39782d5cf66ecc69485db96d42994904be Mon Sep 17 00:00:00 2001 From: Yasmin Teles Date: Thu, 7 Mar 2024 22:05:37 -0300 Subject: [PATCH] chore: add test job at CI --- .github/workflows/health-check.yml | 16 ++++++++++++++++ install.sh | 8 ++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/health-check.yml b/.github/workflows/health-check.yml index e21016a..2fdc4b9 100644 --- a/.github/workflows/health-check.yml +++ b/.github/workflows/health-check.yml @@ -18,3 +18,19 @@ jobs: uses: gitleaks/gitleaks-action@v2 env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + + Test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + steps: + - name: Install Homebrew + run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" + env: + NONINTERACTIVE: 1 + + - name: Run install script + run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/HEAD/install.sh)" + env: + CI: true diff --git a/install.sh b/install.sh index d48e32d..35381d8 100644 --- a/install.sh +++ b/install.sh @@ -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 + GIT_EMAIL=name@mail.com +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"