我已经编写了一个简单的 Github action,在每次提出 PR 时检查我的代码规范是否符合要求。但是无论何时我运行它,都会收到错误消息 "No jobs defined in
jobs
"。如何修复这个问题?name: Check rules
on:
pull_request:
branches:
- develop
- master
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
check-latest: true
- run: npm install
- run: npm check-rules