Skip to content

Commit

Permalink
add linter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaBacquele committed Nov 3, 2024
1 parent 8ba2413 commit 9092e44
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Run Cypress Tests

on:
push:
branches:
- main # Lance les tests lors des push sur la branche main
pull_request:
branches:
- main # Lance les tests lors des pull requests vers la branche main
on: [push]

jobs:
cypress_run:
Expand All @@ -33,5 +27,8 @@ jobs:
- name: Run Cypress tests
run: npm run test.e2e

- name: Run linter
run: npm run lint

- name: Stop application
run: pkill -f "npm run dev"
20 changes: 20 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run linter

on:
push:
branches:
- main # Lance les tests lors des push sur la branche main
pull_request:
branches:
- main # Lance les tests lors des pull requests vers la branche main

jobs:
cypress_run:
runs-on: ubuntu-latest # Utilise l'image Ubuntu la plus récente

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run linter
run: npm run lint
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Echo Hello World
run: echo "Hello World"

0 comments on commit 9092e44

Please sign in to comment.