Skip to content

Commit

Permalink
fix github workflows path
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasMeloSena committed Jul 12, 2024
1 parent 986bb50 commit 6db536e
Show file tree
Hide file tree
Showing 5 changed files with 1,444 additions and 1,525 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./server

steps:
- uses: actions/checkout@v4

Expand All @@ -20,6 +25,11 @@ jobs:
eslint:
name: Eslint
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./server

steps:
- uses: actions/checkout@v4

Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Automated Tests

on: pull_request

jobs:
jest:
name: Jest Ubuntu
runs-on: ubuntu-latest

env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
API_KEY: ${{ secrets.API_KEY }}
AUTH_DOMAIN: ${{ secrets.AUTH_DOMAIN }}
PROJECT_ID: ${{ secrets.PROJECT_ID }}
STORAGE_BUCKET: ${{ secrets.STORAGE_BUCKET }}
MESSAGING_SENDER_ID: ${{ secrets.MESSAGING_SENDER_ID }}
APP_ID: ${{ secrets.APP_ID }}
FIREBASE_EMAIL: ${{ secrets.FIREBASE_EMAIL }}
FIREBASE_SENHA: ${{ secrets.FIREBASE_SENHA }}
JWT_KEY: ${{ secrets.JWT_KEY }}
HASH_KEY: ${{ secrets.HASH_KEY }}
EMAIL_USER: ${{ secrets.EMAIL_USER }}
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }}
TOKEN: ${{ secrets.TOKEN }}



defaults:
run:
working-directory: ./server

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20

- run: npm ci

- run: npm test
18 changes: 0 additions & 18 deletions server/.github/workflows/tests.yaml

This file was deleted.

Loading

0 comments on commit 6db536e

Please sign in to comment.