Lint Test PR Workflow
Lint 测试 PR 工作流
Create a GitHub Action that automatically runs linting and tests whenever a pull request is opened or updated.
创建一个GitHub Action,使其在每次打开或更新拉取请求时自动运行代码检查和测试。
Prompt
I want an Action that runs npm run lint and npm test whenever a pull request is opened or updated. Can you write that and explain how it works?