Skip to content

Commit

Permalink
Merge pull request #370 from DFE-Digital/ci-cypress-lint
Browse files Browse the repository at this point in the history
Add Cypress linting workflow
  • Loading branch information
cshnimble authored Aug 17, 2023
2 parents 38e78d3 + a210c78 commit d721ebc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/continuous-integration-javascript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Cypress test linting

on:
pull_request:
paths:
- CypressTests
types: [opened, synchronize]

jobs:
lint:
runs-on: ubuntu-latest
defaults:
working-directory: CypressTests
steps:
- name: checkout code
uses: actions/checkout@v2

- name: lint cypress tests
run: |
npm ci
npm run lint
2 changes: 1 addition & 1 deletion CypressTests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"cy:open": "cypress open",
"cy:run": "cypress run",
"lint": "eslint . --ext .js,.cy.js,.jsx,.ts.tsx"
"lint": "eslint . --ext .js,.cy.js,.jsx,.ts,.tsx"
},
"keywords": [
"api",
Expand Down

0 comments on commit d721ebc

Please sign in to comment.