From c8c6ad95c0cad664ec6ded3fe49859bdc61392b2 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 | 7 +++---- .github/workflows/deploy-recette.yml | 7 +++---- .github/workflows/eslint.yml | 8 ++------ 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 853e2e4..a691388 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 diff --git a/.github/workflows/deploy-recette.yml b/.github/workflows/deploy-recette.yml index 09ebd34..d8b0924 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 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