Skip to content

Commit

Permalink
Chore: Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
justfizah authored Jan 8, 2025
1 parent 348a122 commit 103a137
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
- name: Install Playwright Browsers
run: yarn playwright install --with-deps

- name: Verify GraphQL API availability
run: |
curl -X POST -H "Content-Type: application/json" \
--data '{"query":"query { categories { id name } }"}' \
https://api.kwekmarket.com/v1/kwekql || exit 1
- name: Build the application
run: yarn build # Ensure your app has a build step

Expand All @@ -42,6 +48,9 @@ jobs:
run: npx wait-on http://localhost:3100

- name: Run Playwright tests
env:
GRAPHQL_API_URL: https://api.kwekmarket.com/v1/kwekql
PORT: 3100
run: yarn playwright test

- uses: actions/upload-artifact@v4
Expand All @@ -50,5 +59,3 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30


0 comments on commit 103a137

Please sign in to comment.