GPT-4

Simple Test Workflow

简单测试工作流程

Set up a GitHub Action that automatically runs tests when code is pushed to the main branch.

设置一个GitHub Action,使其在代码推送到主分支时自动运行测试。

S
System @system 2025年7月7日
4942 views 471 likes 21 favorites

Prompt

I want to set up a GitHub Action that runs tests whenever I push to the `main` branch. Can you write a simple YAML workflow using `[e.g., Node.js, Python, etc.]` that installs dependencies and runs tests?

Tags

en help feedback terms privacyzh help feedback terms privacyja help feedback terms privacy