github-action/require-job-name
Require a string job name.
📖 Rule Details
This rule reports when action jobs has no name or not a string.
yaml
name: Release
jobs:
test:
name: Test
lint:
name: Lint
correct
yaml
# not a mapping
name: Release
jobs:
test: helloWorld
incorrect
yaml
# has no name
name: Release
jobs:
test:
runs-on: ubuntu-latest
incorrect
yaml
# job name is empty
name: Release
jobs:
test:
name:
runs-on: ubuntu-latest
incorrect
yaml
# job name is not a string
name: Release
jobs:
test:
name:
- Test
runs-on: ubuntu-latest
incorrect
yaml
# one or more job has no name
name: Release
jobs:
test:
name: Test
lint:
incorrect
🔧 Options
Nothing.
🚀 Version
This rule was introduced in eslint-plugin-github-action v0.0.6