From 22e1adaaa72c4676ae21968ccb4693180bff88e4 Mon Sep 17 00:00:00 2001 From: Diegogtzt03 <65473367+Diegogtz03@users.noreply.github.com> Date: Wed, 15 May 2024 17:12:56 -0600 Subject: [PATCH] temp: removed testing temporarly --- .github/workflows/frontend_deploy.yml | 108 +++++++++++++------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/.github/workflows/frontend_deploy.yml b/.github/workflows/frontend_deploy.yml index a6318ad..9eceef5 100644 --- a/.github/workflows/frontend_deploy.yml +++ b/.github/workflows/frontend_deploy.yml @@ -5,63 +5,63 @@ on: - H010-UserHistory jobs: - test: - name: "Frontend Tests" - environment: prod - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Install Node - uses: actions/setup-node@v4 - with: - node-version: '20' - working-directory: knowx - - - name: Install Dependencies - run: npm install - working-directory: knowx - - - name: Make envfile - uses: SpicyPizza/create-envfile@v2.0 - with: - envkey_API_ROOT_ROUTE: ${{ secrets.API_ROOT_ROUTE }} - envkey_DB_URL: ${{ secrets.DB_URL }} - envkey_NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }} - envkey_NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }} - envkey_GITHUB_ID: ${{ secrets.NEXTAUTH_GITHUB_ID }} - envkey_GITHUB_SECRET: ${{ secrets.NEXTAUTH_GITHUB_SECRET }} - envkey_GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} - envkey_GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} - envkey_EMAIL_SERVER_HOST: ${{ secrets.EMAIL_SERVER_HOST }} - envkey_EMAIL_SERVER_PORT: ${{ secrets.EMAIL_SERVER_PORT }} - envkey_EMAIL_SERVER_USER: ${{ secrets.EMAIL_SERVER_USER }} - envkey_EMAIL_SERVER_PASSWORD: ${{ secrets.EMAIL_SERVER_PASSWORD }} - envkey_EMAIL_FROM: ${{ secrets.EMAIL_FROM }} - envkey_SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }} - directory: knowx - - - name: Run Tests - uses: cypress-io/github-action@v6 - with: - build: npm run build - start: npm start - working-directory: knowx - - - name: Send Deploy Failure Message - if: failure() - run: curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=💥 Front Testing Failed" - - - name: Send Deploy Success Message - if: success() - run: | - curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=🧪 Front Testing Successful" + # test: + # name: "Frontend Tests" + # environment: prod + # runs-on: ubuntu-latest + # steps: + # - name: Checkout + # uses: actions/checkout@v4 + + # - name: Install Node + # uses: actions/setup-node@v4 + # with: + # node-version: '20' + # working-directory: knowx + + # - name: Install Dependencies + # run: npm install + # working-directory: knowx + + # - name: Make envfile + # uses: SpicyPizza/create-envfile@v2.0 + # with: + # envkey_API_ROOT_ROUTE: ${{ secrets.API_ROOT_ROUTE }} + # envkey_DB_URL: ${{ secrets.DB_URL }} + # envkey_NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }} + # envkey_NEXTAUTH_SECRET: ${{ secrets.NEXTAUTH_SECRET }} + # envkey_GITHUB_ID: ${{ secrets.NEXTAUTH_GITHUB_ID }} + # envkey_GITHUB_SECRET: ${{ secrets.NEXTAUTH_GITHUB_SECRET }} + # envkey_GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} + # envkey_GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} + # envkey_EMAIL_SERVER_HOST: ${{ secrets.EMAIL_SERVER_HOST }} + # envkey_EMAIL_SERVER_PORT: ${{ secrets.EMAIL_SERVER_PORT }} + # envkey_EMAIL_SERVER_USER: ${{ secrets.EMAIL_SERVER_USER }} + # envkey_EMAIL_SERVER_PASSWORD: ${{ secrets.EMAIL_SERVER_PASSWORD }} + # envkey_EMAIL_FROM: ${{ secrets.EMAIL_FROM }} + # envkey_SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }} + # directory: knowx + + # - name: Run Tests + # uses: cypress-io/github-action@v6 + # with: + # build: npm run build + # start: npm start + # working-directory: knowx + + # - name: Send Deploy Failure Message + # if: failure() + # run: curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=💥 Front Testing Failed" + + # - name: Send Deploy Success Message + # if: success() + # run: | + # curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=🧪 Front Testing Successful" dev_deploy: - needs: test + # needs: test name: "Deploy to AWS - DEV" environment: dev runs-on: ubuntu-latest @@ -147,7 +147,7 @@ jobs: production_deploy: - needs: [test, dev_deploy] + needs: dev_deploy name: "Deploy to AWS - PRODUCTION" environment: prod runs-on: ubuntu-latest