Skip to content

Commit

Permalink
fix: ci testes
Browse files Browse the repository at this point in the history
  • Loading branch information
clara-marcelino-desco committed Dec 6, 2024
1 parent ec22bda commit 31b30d6
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,40 +64,40 @@ jobs:
- name: 🧹 Verifica eslint
run: npm run lint

# test:
# runs-on: ubuntu-latest
# env:
# MONGO_URI: ${{ secrets.MONGO_URI }}
# MONGO_INITDB_ROOT_USERNAME: ${{ secrets.MONGO_INITDB_ROOT_USERNAME }}
# MONGO_INITDB_ROOT_PASSWORD: ${{ secrets.MONGO_INITDB_ROOT_PASSWORD }}
# DB_HOST: ${{ secrets.DB_HOST }}
# PORT: ${{ secrets.PORT }}
# EMAIL: ${{ secrets.EMAIL }}
# SECRET: ${{ secrets.SECRET }}
# steps:
# - name: Checkout code
# uses: actions/checkout@v3

# - name: Use Node.js 20.x
# uses: actions/setup-node@v3
# with:
# node-version: 20.x

# - name: 📬 Caching
# uses: actions/cache@v3
# with:
# path: |
# ${{ github.workspace }}/node_modules
# ${{ github.workspace }}/dist
# key: ${{ runner.os }}-jest-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('/.{js,jsx,ts,tsx}') }}
# restore-keys: |
# ${{ runner.os }}-jest-${{ hashFiles('**/package-lock.json') }}-

# - name: 🧰 Instala bibliotecas e dependências
# run: npm i

# - name: 🧪 Roda suíte de testes
# run: npm test
test:
runs-on: ubuntu-latest
env:
MONGO_URI: ${{ secrets.MONGO_URI }}
MONGO_INITDB_ROOT_USERNAME: ${{ secrets.MONGO_INITDB_ROOT_USERNAME }}
MONGO_INITDB_ROOT_PASSWORD: ${{ secrets.MONGO_INITDB_ROOT_PASSWORD }}
DB_HOST: ${{ secrets.DB_HOST }}
PORT: ${{ secrets.PORT }}
EMAIL: ${{ secrets.EMAIL }}
SECRET: ${{ secrets.SECRET }}
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x

- name: 📬 Caching
uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/node_modules
${{ github.workspace }}/dist
key: ${{ runner.os }}-jest-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('/.{js,jsx,ts,tsx}') }}
restore-keys: |
${{ runner.os }}-jest-${{ hashFiles('**/package-lock.json') }}-
- name: 🧰 Instala bibliotecas e dependências
run: npm i

- name: 🧪 Roda suíte de testes
run: npm test

sonarcloud:
name: sonarcloud
Expand Down

0 comments on commit 31b30d6

Please sign in to comment.