diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 3a89478..e9a1359 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -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 diff --git a/.github/workflows/deploy-recette.yml b/.github/workflows/deploy-recette.yml index 3235e02..db92d69 100644 --- a/.github/workflows/deploy-recette.yml +++ b/.github/workflows/deploy-recette.yml @@ -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 diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 0941bb0..104cdb5 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -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 diff --git a/package.json b/package.json index 47d16c6..beaa84c 100644 --- a/package.json +++ b/package.json @@ -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",