partial implementation of upload feature to cloudflare r2 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
api-gympass-db: | |
image: bitnami/postgresql | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRESQL_USERNAME: docker | |
POSTGRESQL_PASSWORD: docker | |
POSTGRESQL_DATABASE: dockerdb | |
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 }} | |
DATABASE_URL: "postgresql://docker:docker@localhost:5432/dockerdb?schema=public" |