Skip to content

Commit

Permalink
💚
Browse files Browse the repository at this point in the history
Signed-off-by: danigonzser <[email protected]>
  • Loading branch information
danigonzser committed Nov 5, 2024
1 parent 8830a10 commit 473e87a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/code-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
push:
branches-ignore:
- main
paths:
- "src/**/*.tsx"
- "src/**/*.ts"
- "cypress/**/*.ts"
# paths:
# - "src/**/*.tsx"
# - "src/**/*.ts"
# - "cypress/**/*.ts"

jobs:
build-cache:
Expand Down Expand Up @@ -79,8 +79,6 @@ jobs:
browser: chrome
spec: cypress/unit/*
config-file: cypress.config.ts
env:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/proyecto-tfg

ui-chrome-desktop-tests:
needs: build-cache
Expand Down Expand Up @@ -162,7 +160,8 @@ jobs:
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
env:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/proyecto-tfg
POSTGRES_PRISMA_URL: postgresql://postgres:postgres@postgres:5432/proyecto-tfg
POSTGRES_URL_NON_POOLING: postgresql://postgres:postgres@postgres:5432/proyecto-tfg

ui-chrome-mobile-tests:
needs: build-cache
Expand Down Expand Up @@ -247,11 +246,17 @@ jobs:
env:
POSTGRES_PRISMA_URL: postgresql://postgres:postgres@postgres:5432/proyecto-tfg
POSTGRES_URL_NON_POOLING: postgresql://postgres:postgres@postgres:5432/proyecto-tfg

deploy-prev:
needs: [ui-chrome-desktop-tests, ui-chrome-mobile-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install Node.js
uses: actions/setup-node@v4
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/deploy-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
spec: cypress/unit/*
config-file: cypress.config.ts
env:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/proyecto-tfg
POSTGRES_PRISMA_URL: postgresql://postgres:postgres@postgres:5432/proyecto-tfg
POSTGRES_URL_NON_POOLING: postgresql://postgres:postgres@postgres:5432/proyecto-tfg

ui-chrome-desktop-tests:
needs: build-cache
Expand Down Expand Up @@ -163,7 +164,8 @@ jobs:
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
env:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/proyecto-tfg
POSTGRES_PRISMA_URL: postgresql://postgres:postgres@postgres:5432/proyecto-tfg
POSTGRES_URL_NON_POOLING: postgresql://postgres:postgres@postgres:5432/proyecto-tfg

ui-chrome-mobile-tests:
needs: build-cache
Expand Down Expand Up @@ -248,8 +250,10 @@ jobs:
env:
POSTGRES_PRISMA_URL: postgresql://postgres:postgres@postgres:5432/proyecto-tfg
POSTGRES_URL_NON_POOLING: postgresql://postgres:postgres@postgres:5432/proyecto-tfg

deploy-prod:
needs: [ui-chrome-desktop-tests, ui-chrome-mobile-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 473e87a

Please sign in to comment.