From 03a81dd17dacebc9eed79f22da0f621ef481501f 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 | 6 ++++++ install.sh | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/health-check.yml b/.github/workflows/health-check.yml index e21016a..7516d62 100644 --- a/.github/workflows/health-check.yml +++ b/.github/workflows/health-check.yml @@ -18,3 +18,9 @@ jobs: uses: gitleaks/gitleaks-action@v2 env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + + Test: + runs-on: ubuntu-latest + steps: + - name: Run install script + run: CI=true /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/HEAD/install.sh)" diff --git a/install.sh b/install.sh index f9f9f75..f04c2cb 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"