Skip to content

Commit

Permalink
MaJ de la configuration de Node
Browse files Browse the repository at this point in the history
  • Loading branch information
NerOcrO committed Jun 19, 2024
1 parent f507a0f commit 73c0e56
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,16 @@ on:
workflow_dispatch:
push:
branches: [main]
env:
branch:

jobs:
dependencies:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.9.0]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: npm
node-version-file: package.json
- name: Retrieve cached dependencies
id: retrieve-dependencies
uses: actions/cache@v3
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/deploy-recette.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,16 @@ on:
workflow_dispatch:
push:
branches: [recette]
env:
branch:

jobs:
dependencies:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.9.0]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache: npm
node-version-file: package.json
- name: Retrieve cached dependencies
id: retrieve-dependencies
uses: actions/cache@v3
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ name: ESLint

on:
push:
branches: [ main, recette ]
branches: [main, recette]
pull_request:
branches: [ main, recette ]
branches: [main, recette]

jobs:
eslint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
cache: npm
node-version-file: package.json
- name: Install modules
run: npm i
- name: Lint
run: npm run lint
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,8 @@
"eslint-plugin-react": "^7.33.2",
"redux-mock-store": "^1.5.4",
"sass": "^1.71.0"
},
"engines": {
"node": "20.12.2"
}
}

0 comments on commit 73c0e56

Please sign in to comment.