Skip to content

Commit

Permalink
feat/fix: Update npm lint command to npm run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 6, 2024
1 parent fdd236b commit b91b404
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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
```
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');
});
});

0 comments on commit b91b404

Please sign in to comment.