diff --git a/.github/workflows/health-check.yml b/.github/workflows/health-check.yml index e21016a..c533faa 100644 --- a/.github/workflows/health-check.yml +++ b/.github/workflows/health-check.yml @@ -18,3 +18,24 @@ jobs: uses: gitleaks/gitleaks-action@v2 env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + + Test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + include: + - os: macOS-latest + shell: bash + - os: ubuntu-latest + shell: bash + 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 03b9015..b36c2bd 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"