Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

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 7b69150 commit 5787b4c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 35 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/deploy-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ on:
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
10 changes: 3 additions & 7 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ on:
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
10 changes: 3 additions & 7 deletions .github/workflows/deploy-recette.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ on:
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
22 changes: 8 additions & 14 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,20 @@ name: ESLint

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

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

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
node-version-file: package.json
- name: Install modules
run: yarn
- run: yarn run eslint src
run: npm i
- name: Lint
run: npm run lint
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,8 @@
"autoprefixer": "^10.4.18",
"eslint-plugin-react": "^7.34.0",
"sass": "^1.71.1"
},
"engines": {
"node": "20.12.2"
}
}

0 comments on commit 5787b4c

Please sign in to comment.