[PR #8753] Add GitHub Actions Workflow for Web Tests #26157

Closed
opened 2026-02-21 20:36:59 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/8753

State: closed
Merged: Yes


Add GitHub Actions Workflow for Web Tests

Description

This pull request introduces a new GitHub Actions workflow file (web-tests.yml) to automate testing for the web folder of the project.

Key Features

  • Triggers on pull requests to the main branch
  • Only runs when changes are made in the web/ directory
  • Uses concurrency to cancel outdated workflow runs
  • Performs the following steps:
    1. Checks out the code
    2. Verifies if any files in the web/ directory have changed
    3. Sets up Node.js v20 if changes are detected
    4. Installs dependencies using Yarn
    5. Runs the test suite

Benefits

  • Ensures that tests are run automatically for every PR affecting the web folder
  • Improves code quality and catches potential issues early
  • Saves time by cancelling outdated runs and skipping unnecessary steps

Notes

  • The workflow uses Node.js v20 and Yarn for dependency management
  • Tests are only run if changes are detected in the web/ directory, optimizing CI/CD performance
**Original Pull Request:** https://github.com/langgenius/dify/pull/8753 **State:** closed **Merged:** Yes --- # Add GitHub Actions Workflow for Web Tests ## Description This pull request introduces a new GitHub Actions workflow file (`web-tests.yml`) to automate testing for the web folder of the project. ## Key Features - Triggers on pull requests to the `main` branch - Only runs when changes are made in the `web/` directory - Uses concurrency to cancel outdated workflow runs - Performs the following steps: 1. Checks out the code 2. Verifies if any files in the `web/` directory have changed 3. Sets up Node.js v20 if changes are detected 4. Installs dependencies using Yarn 5. Runs the test suite ## Benefits - Ensures that tests are run automatically for every PR affecting the web folder - Improves code quality and catches potential issues early - Saves time by cancelling outdated runs and skipping unnecessary steps ## Notes - The workflow uses Node.js v20 and Yarn for dependency management - Tests are only run if changes are detected in the `web/` directory, optimizing CI/CD performance
yindo added the pull-request label 2026-02-21 20:36:59 -05:00
yindo closed this issue 2026-02-21 20:37:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#26157