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 5fe4550 commit daee401
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 51 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,19 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Déploiement en production

on:
push:
branches: [ main ]
branches: [main]

jobs:
build:

runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow

- uses: 47ng/actions-clever-cloud@v1.3.1
with:
fetch-depth: 0
- uses: 47ng/actions-clever-cloud@v2.0.0
with:
appID: ${{ secrets.CLEVER_APP_DATA_PRODUCTION_ID }}
env:
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}
- uses: actions/checkout@v4
20 changes: 5 additions & 15 deletions .github/workflows/deploy-recette.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,20 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Déploiement en recette

on:
push:
branches: [ recette ]
branches: [recette]

jobs:
build:

runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow

- uses: 47ng/actions-clever-cloud@v1.3.1
with:
fetch-depth: 0
- uses: 47ng/actions-clever-cloud@v2.0.0
with:
appID: ${{ secrets.CLEVER_APP_DATA_RECETTE_ID }}
force: true
env:
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}
- uses: actions/checkout@v4
24 changes: 7 additions & 17 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

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: npm i
- name: Lint
run: yarn run eslint .
run: npm run lint
3 changes: 1 addition & 2 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"config": "config/"
},
"engines": {
"node": ">= 19.7.0",
"npm": ">= 3.0.0"
"node": "20.12.2"
},
"scripts": {
"test": "npm run lint && npm run mocha",
Expand Down

0 comments on commit daee401

Please sign in to comment.