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 c8c6ad9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
7 changes: 3 additions & 4 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 Down
7 changes: 3 additions & 4 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
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 c8c6ad9

Please sign in to comment.