From f14c0d821133af572ff2a7df28dbe9e7ad4cb4aa Mon Sep 17 00:00:00 2001 From: Fabien Mercier Date: Wed, 19 Jun 2024 18:50:03 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20des=20github=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-production.yml | 11 +++++------ .github/workflows/deploy-recette.yml | 11 +++++------ .github/workflows/eslint.yml | 8 ++------ 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 853e2e4..6b6c177 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -1,7 +1,6 @@ name: Déploiement sur l'espace de production on: - workflow_dispatch: push: branches: [main] @@ -16,7 +15,7 @@ jobs: node-version-file: package.json - name: Retrieve cached dependencies id: retrieve-dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: node_modules-${{ hashFiles('package-lock.json') }} path: node_modules @@ -25,7 +24,7 @@ jobs: run: npm ci - name: Cache dependencies if not present if: steps.retrieve-dependencies.outputs.cache-hit == false - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: node_modules.-${{ hashFiles('package-lock.json') }} path: node_modules @@ -36,7 +35,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Retrieve cached dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: node_modules-${{ hashFiles('package-lock.json') }} path: node_modules @@ -59,7 +58,7 @@ jobs: source: ".htaccess" target: "build/.htaccess" - name: Upload release bundle as artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bundle path: build/* @@ -70,7 +69,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Retrieve bundle React - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bundle path: build diff --git a/.github/workflows/deploy-recette.yml b/.github/workflows/deploy-recette.yml index 09ebd34..3f4b489 100644 --- a/.github/workflows/deploy-recette.yml +++ b/.github/workflows/deploy-recette.yml @@ -1,7 +1,6 @@ name: Déploiement sur l'espace de recette on: - workflow_dispatch: push: branches: [recette] @@ -16,7 +15,7 @@ jobs: node-version-file: package.json - name: Retrieve cached dependencies id: retrieve-dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: node_modules-${{ hashFiles('package-lock.json') }} path: node_modules @@ -25,7 +24,7 @@ jobs: run: npm ci - name: Cache dependencies if not present if: steps.retrieve-dependencies.outputs.cache-hit == false - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: node_modules.-${{ hashFiles('package-lock.json') }} path: node_modules @@ -36,7 +35,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Retrieve cached dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: key: node_modules-${{ hashFiles('package-lock.json') }} path: node_modules @@ -69,7 +68,7 @@ jobs: source: ".htaccess" target: "build/.htaccess" - name: Upload release bundle as artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bundle path: build/* @@ -80,7 +79,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Retrieve bundle React - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: bundle path: build diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index d51034e..73ee1da 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -1,17 +1,13 @@ name: ESLint -on: - push: - branches: [main, recette] - pull_request: - branches: [main, recette] +on: pull_request jobs: eslint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: cache: npm node-version-file: package.json