-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
18 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,19 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Déploiement en production | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.9.0] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: git fetch --prune --unshallow | ||
|
||
- uses: 47ng/actions-clever-cloud@v1.3.1 | ||
with: | ||
fetch-depth: 0 | ||
- uses: 47ng/actions-clever-cloud@v2.0.0 | ||
with: | ||
appID: ${{ secrets.CLEVER_APP_DATA_PRODUCTION_ID }} | ||
env: | ||
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }} | ||
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }} | ||
- uses: actions/checkout@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,20 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Déploiement en recette | ||
|
||
on: | ||
push: | ||
branches: [ recette ] | ||
branches: [recette] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.9.0] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: git fetch --prune --unshallow | ||
|
||
- uses: 47ng/actions-clever-cloud@v1.3.1 | ||
with: | ||
fetch-depth: 0 | ||
- uses: 47ng/actions-clever-cloud@v2.0.0 | ||
with: | ||
appID: ${{ secrets.CLEVER_APP_DATA_RECETTE_ID }} | ||
force: true | ||
env: | ||
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }} | ||
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }} | ||
- uses: actions/checkout@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,21 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: ESLint | ||
|
||
on: | ||
push: | ||
branches: [ main, recette ] | ||
branches: [main, recette] | ||
pull_request: | ||
branches: [ main, recette ] | ||
branches: [main, recette] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: npm | ||
node-version-file: package.json | ||
- name: Install modules | ||
run: yarn | ||
run: npm i | ||
- name: Lint | ||
run: yarn run eslint . | ||
run: npm run lint |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters