Skip to content

Commit

Permalink
ci: fix test path
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-cardenas-coding committed Mar 31, 2024
1 parent 5b205e8 commit 948fa5c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/screenshot_capture.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,25 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Node.js environment
- name: Setup Node.js Environment
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"

- name: Install dependencies
- name: Install Dependencies
run: npm ci

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: Build the website
- name: Build Website
run: make build

- name: Take screenshots with Playwright
- name: Take Screenshots with Playwright
run: make test-visual-ci

- name: Upload screenshots
- name: Upload Screenshots
uses: actions/upload-artifact@v4
id: screenshots
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/visual-comparison.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ jobs:
fi
done
- name: DNS Wait
run: sleep 120


- name: GH Pages URL
run: |
Expand Down
2 changes: 1 addition & 1 deletion visuals/screenshot.api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const siteUrl = "http://localhost:3000";
const sitemapPath = "build/sitemap.xml";
const stylesheetPath = "visuals/screenshot.css";
const stylesheet = fs.readFileSync(stylesheetPath).toString();
const excludeList = require("./excludeList.json");
const excludeList = require("./exclude.json");

function isApiDocsPathname(pathname: string, excludeList: string[]): boolean {
if (excludeList.includes(pathname)) {
Expand Down
2 changes: 1 addition & 1 deletion visuals/screenshot.docs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const siteUrl = "http://localhost:3000";
const sitemapPath = "build/sitemap.xml";
const stylesheetPath = "visuals/screenshot.css";
const stylesheet = fs.readFileSync(stylesheetPath).toString();
const excludeList = require("./excludeList.json");
const excludeList = require("./exclude.json");

function isVersionedDocsPathname(pathname: string, excludeList: string[]): boolean {
if (excludeList.includes(pathname)) {
Expand Down

0 comments on commit 948fa5c

Please sign in to comment.