Skip to content

Commit

Permalink
Mise à jour des github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
NerOcrO committed Jun 19, 2024
1 parent 73c0e56 commit f14c0d8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Déploiement sur l'espace de production

on:
workflow_dispatch:
push:
branches: [main]

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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/*
Expand All @@ -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
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/deploy-recette.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Déploiement sur l'espace de recette

on:
workflow_dispatch:
push:
branches: [recette]

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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/*
Expand All @@ -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
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f14c0d8

Please sign in to comment.