Skip to content

using secrets on tests e2e yml file #15

using secrets on tests e2e yml file

using secrets on tests e2e yml file #15

Workflow file for this run

name: Run e2e Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-e2e-tests:
name: Run e2e Tests
runs-on: ubuntu-latest
services:
nest-clean-db:
image: bitnami/postgresql
ports:
- 5432:5432
env:
POSTGRESQL_USERNAME: docker
POSTGRESQL_PASSWORD: docker
POSTGRESQL_DATABASE: dockerdb
nest-clean-cache:
image: bitnami/redis
ports:
- 6379:6379
options: --name nest-clean-cache
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm run test:e2e
env:
JWT_PUBLIC_KEY: ${{ secrets.JWT_PUBLIC_KEY }}
JWT_PRIVATE_KEY: ${{ secrets.JWT_PRIVATE_KEY }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REDIS_DB: ${{ secrets.REDIS_DB }}
REDIS_PORT: ${{ secrets.REDIS_PORT }}
REDIS_HOST: ${{ secrets.REDIS_HOST }}
DATABASE_URL: "postgresql://docker:docker@localhost:5432/dockerdb?schema=public"