diff --git a/.github/workflows/Playwright.yml b/.github/workflows/Playwright.yml index 765d1ab2..3e699992 100644 --- a/.github/workflows/Playwright.yml +++ b/.github/workflows/Playwright.yml @@ -19,6 +19,18 @@ jobs: with: node-version-file: ".nvmrc" + - name: Install Docker + uses: docker/setup-buildx-action@v2 + + - name: Build and Run Docker Compose + run: | + docker-compose up -d + working-directory: ./sfr-bookfinder-front-end + + - name: Update /etc/hosts + run: | + echo "127.0.0.1 local.nypl.org" | sudo tee -a /etc/hosts + - name: Install Deps run: npm i @cucumber/cucumber@8.11.1 @playwright/test@1.29.1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 53dec348..6207821a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - Add error logging to New Relic for API route errors and client side errors - Update `actions/checkout`, `actions/setup-node`, `aws-actions/configure-aws-credentials`, and `aws-actions/amazon-ecr-login` Github action versions - Update unit tests to use custom render function +- SFR-2238: Run GHA on Localhost ## [0.18.2] diff --git a/cucumber.json b/cucumber.json index 877aceb0..ac6320f5 100644 --- a/cucumber.json +++ b/cucumber.json @@ -2,7 +2,7 @@ "default": { "import": ["playwright/tests/**/*.ts", "playwright/support/**/*.ts"], "worldParameters": { - "appUrl": "https://drb-qa.nypl.org", + "appUrl": "http://localhost:3000", "headless": false } } diff --git a/package-lock.json b/package-lock.json index ed0e8183..a710ed55 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "extract-loader": "^5.1.0", "file-loader": "^6.2.0", "focus-trap-react": "^10.0.0", - "newrelic": "12.5.0", + "newrelic": "^12.5.0", "next": "^13.5.6", "next-transpile-modules": "^7.0.0", "react": "^18.2.0",