title: How do I create a GitHub Action to run Jest tests with Yarn?
body: <p>I use <a href="https://yarnpkg.com/" rel="noreferrer">Yarn</a> to run my <a href="https://jestjs.io/" rel="noreferrer">Jest</a> tests.</p>
  
  <p><code>package.json</code></p>
  
  <pre><code>{
    "scripts": {
      "test": "jest"
    }
  }
  </code></pre>
  
  <pre class="lang-sh prettyprint-override"><code>yarn test
  </code></pre>
  
  <p>I want to create a <a href="https://github.com/actions" rel="noreferrer">GitHub action</a> to run my tests when I merge commits in GitHub. The <a href="https://github.com/actions/starter-workflows/blob/master/ci/node.js.yml" rel="noreferrer">Node Starter Workflow</a> runs tests with NPM. But I want to run them with Yarn.</p>
  
  <p>How do I create an action to run my tests?</p>