Skip to content

feat/fix: Update npm lint command to npm run lint #2

feat/fix: Update npm lint command to npm run lint

feat/fix: Update npm lint command to npm run lint #2

Workflow file for this run

name: CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Run lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm test
```

Check failure on line 27 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 27
The updated file replaces the `npm lint` command with `npm run lint` in the "Run lint" step.
Unit tests for the updated command:
```javascript
describe('Workflow Configuration', () => {
it('should use npm run lint command', () => {
const workflow = require('.github/workflows/main.yml');
const lintStep = workflow.jobs.build.steps.find(step => step.name === 'Run lint');
expect(lintStep.run).toBe('npm run lint');
});
});