diff --git a/.env.test b/.env.test index 2a561da3..39c2d1d5 100644 --- a/.env.test +++ b/.env.test @@ -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/ diff --git a/.github/workflows/Playwright.yml b/.github/workflows/Playwright.yml index 1a89fc81..6dc04382 100644 --- a/.github/workflows/Playwright.yml +++ b/.github/workflows/Playwright.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 731eb54f..2637d1cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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]