Skip to main content

GA-B004: Duplicate step name

Warning Best Practice

Why This Matters

Multiple steps with the same name in a job make logs confusing. Each step name should be unique within its job to aid debugging and identification.

How to Fix

Give each step a unique name

Before (incorrect)

steps:
  - name: Run tests
    run: npm test
  - name: Run tests
    run: npm run e2e

After (correct)

steps:
  - name: Run unit tests
    run: npm test
  - name: Run integration tests
    run: npm run e2e

Rule Details

Rule Code
GA-B004
Severity
Warning
Category
Best Practice

Related Rules