github-action/prefer-fail-fast
Disallow setting fail-fast to false.
📖 Rule Details
This rule reports when set strategy.fail-fast
to false.
yaml
name: Release
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
version: [6, 7, 8]
correct
yaml
name: Release
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: github.repository == 'ntnyq/eslint-plugin-github-action'
matrix:
version: [6, 7, 8]
correct
yaml
name: Release
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: [6, 7, 8]
incorrect
🔧 Options
Nothing.
🚀 Version
This rule was introduced in eslint-plugin-github-action v0.0.9