Lint Test PR Workflow
Create a GitHub Action that automatically runs linting and tests whenever a pull request is opened or updated.
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?