Required to checkout a repository. Actions won’t run unless you have this.

e.g.

npm ERR! code ENOENT

npm ERR! enoent ENOENT: no such file or directory, open '/home/runner/work/webui-workshop/webui-workshop/package.json'

npm ERR! enoent This is related to npm not being able to find a file.

So in .github/action.yml

jobs:
  test:
    name: Tests on macos-latest
    runs-on: macOS-latest
    steps:
      - uses: actions/checkout@v1