Skip to content

Commit

Permalink
Merge pull request #112 from anct-cnum/md/upgradeGithubActions
Browse files Browse the repository at this point in the history
mise à jour githubactions
  • Loading branch information
dienamo authored Nov 28, 2023
2 parents 6b225e9 + dd70c14 commit 03dbf4c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.7.0]
node-version: [20.9.0]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Retrieve cached dependencies
id: retrieve-dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
key: node_modules-${{ hashFiles('package-lock.json') }}
path: node_modules
Expand All @@ -30,7 +30,7 @@ jobs:
run: npm ci
- name: Cache dependencies if not present
if: steps.retrieve-dependencies.outputs.cache-hit == false
uses: actions/cache@v2
uses: actions/cache@v3
with:
key: node_modules.-${{ hashFiles('package-lock.json') }}
path: node_modules
Expand All @@ -39,14 +39,14 @@ jobs:
needs: dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Retrieve cached dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
key: node_modules-${{ hashFiles('package-lock.json') }}
path: node_modules
- name: Override .env
uses: SpicyPizza/create-envfile@v1
uses: SpicyPizza/create-envfile@v2.0
with:
envkey_REACT_APP_BLOG_URL: "https://media.conseiller-numerique.gouv.fr"
envkey_REACT_APP_DASHBOARD_URL: "https://pilotage.conseiller-numerique.gouv.fr"
Expand All @@ -64,7 +64,7 @@ jobs:
source: ".htaccess"
target: "build/.htaccess"
- name: Upload release bundle as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: bundle
path: build/*
Expand All @@ -73,9 +73,9 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Retrieve bundle React
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: bundle
path: build
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/deploy-recette.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.7.0]
node-version: [20.9.0]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Retrieve cached dependencies
id: retrieve-dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
key: node_modules-${{ hashFiles('package-lock.json') }}
path: node_modules
Expand All @@ -30,7 +30,7 @@ jobs:
run: npm ci
- name: Cache dependencies if not present
if: steps.retrieve-dependencies.outputs.cache-hit == false
uses: actions/cache@v2
uses: actions/cache@v3
with:
key: node_modules.-${{ hashFiles('package-lock.json') }}
path: node_modules
Expand All @@ -39,14 +39,14 @@ jobs:
needs: dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Retrieve cached dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
key: node_modules-${{ hashFiles('package-lock.json') }}
path: node_modules
- name: Override .env
uses: SpicyPizza/create-envfile@v1
uses: SpicyPizza/create-envfile@v2.0
with:
envkey_REACT_APP_BLOG_URL: "https://media.conseiller-numerique.gouv.fr"
envkey_REACT_APP_DASHBOARD_URL: "https://beta.pilotage.conseiller-numerique.gouv.fr"
Expand All @@ -64,7 +64,7 @@ jobs:
source: ".htaccess"
target: "build/.htaccess"
- name: Upload release bundle as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: bundle
path: build/*
Expand All @@ -73,9 +73,9 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Retrieve bundle React
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: bundle
path: build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [19.7.0]
node-version: [20]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down

0 comments on commit 03dbf4c

Please sign in to comment.