Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFR-2316: Run tests against backend API locally #561

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
APP_ENV=development

# API ENDPOINT
API_URL=https://drb-api-qa.nypl.org/
API_URL=http://http://127.0.0.1:5050/
20 changes: 20 additions & 0 deletions .github/workflows/Playwright.yml
Original file line number Diff line number Diff line change
@@ -30,6 +30,26 @@ jobs:
sleep 5
shell: bash

- name: Checkout another repository
uses: actions/checkout@v3
with:
repository: NYPL/drb-etl-pipeline
path: drb-etl-pipeline

- name: Start the API
working-directory: ./drb-etl-pipeline
env:
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PSWD: ${{ secrets.POSTGRES_PSWD }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
pip install -r requirements.txt
docker compose up redis &
sleep 10
python main.py -p APIProcess -e frontend-ci &
sleep 10

- name: Run your tests
run: npm run playwright

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
- Enable playwright tests GH action
- Remove unused scss and img files
- Remove duplicate eslint packages, update eslint config, and resolve linting errors
- Run Playwright tests against local backend API

## [0.18.8]