Skip to content

Chrome Extension Testing#23

Open
almuqsitm wants to merge 5 commits intomainfrom
amazon-order-Extension
Open

Chrome Extension Testing#23
almuqsitm wants to merge 5 commits intomainfrom
amazon-order-Extension

Conversation

@almuqsitm
Copy link
Collaborator

Summary
This PR introduces a GitHub Actions workflow that automatically installs dependencies and runs tests for the Chrome Extension located in the amazon-order-csv/ directory. The workflow triggers on:

  • Pushes to the main branch that modify files inside amazon-order-csv/

  • Pull requests targeting main that include changes to files in that directory

Key Features:

  • Automatically runs npm install and npm test

  • Ensures CI coverage for Chrome Extension before merging

Next Steps

  • We still need to ensure that testing for other parts of the project happen. For example, there should be automated testing for our webpage.

@NirathH NirathH requested review from NirathH and Copilot May 14, 2025 19:47
@NirathH NirathH added enhancement New feature or request extension labels May 14, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a GitHub Actions workflow to automatically install dependencies and run tests for the Chrome Extension located in the amazon-order-csv/ directory while also updating related configurations.

  • Added a new Chrome Extension testing workflow (.github/workflows/test.yml) with a dedicated working directory and updated Node.js setup.
  • Introduced a deployment workflow for Vercel (.github/workflows/production.yaml).
  • Made minor updates in dependences (fitcheck/package.json) and cleaned up unused imports (fitcheck/app/dashboard/page.js).

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
fitcheck/package.json Added the "postcss" dependency to support style processing.
fitcheck/app/dashboard/page.js Removed the unused "Main" import, streamlining the code.
amazon-order-csv/background.js Updated the URL that opens on extension installation.
.github/workflows/test.yml Revised the test workflow for the Chrome Extension with Node.js setup.
.github/workflows/production.yaml Introduced a new production deployment workflow for Vercel.
Comments suppressed due to low confidence (2)

fitcheck/app/dashboard/page.js:2

  • Confirm that the removal of the 'Main' import is intentional and that no layout or document functionality is impacted by this change.
import { Main } from "next/document";

amazon-order-csv/background.js:11

  • Verify that the updated URL is correct and that it targets the intended environment for the extension installation.
chrome.tabs.create({ url: "https://fitcheck-nirathh-nirathhs-projects.vercel.app/" });

ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}." No newline at end of file
- name: Checkout code
uses: actions/checkout@v3
Copy link

Copilot AI May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider aligning the checkout action version with other workflows (e.g., using actions/checkout@v4) for consistency across the project.

Suggested change
uses: actions/checkout@v3
uses: actions/checkout@v4

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments