-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from PrestaShop/develop
Merge `develop` into `master`
- Loading branch information
Showing
19 changed files
with
22,280 additions
and
14,316 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: QANIGHTLY PRESTABULLE CLEANING | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- develop | ||
|
||
env: | ||
LABELS: ${{toJSON(github.event.pull_request.labels)}} | ||
|
||
jobs: | ||
qanightly_prestabulle: | ||
name: apiqanightly Cleaning Prestabulle | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 25 | ||
if: contains(github.event.pull_request.labels.*.name, 'prestabulle1') || | ||
contains(github.event.pull_request.labels.*.name, 'prestabulle2') || | ||
contains(github.event.pull_request.labels.*.name, 'prestabulle3') | ||
|
||
steps: | ||
|
||
- name: Checkout the repository 🎁 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setting up the Bulle variable for later 💬 | ||
run: echo "BULLE=$BULLE$(echo $LABELS > labels.json && cat labels.json | jq -r '.[]|.name'|grep prestabulle)" >> $GITHUB_OUTPUT | ||
id: get_bulle | ||
|
||
- name: Trigger clean prestabulle | ||
uses: aurelien-baudet/workflow-dispatch@v2 | ||
with: | ||
workflow: prestabulle-clean.yml | ||
repo: PrestaShopCorp/qanightlyresults-cd | ||
inputs: '{ "project": "nightly", "bulle": "${{ steps.get_bulle.outputs.BULLE }}"}' | ||
token: ${{ secrets.TERRAFORM_ACCESS_TOKEN }} | ||
ref: 'refs/heads/main' |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Check Build | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup node env 🏗 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14.21 | ||
cache: 'npm' | ||
|
||
- name: Install dependencies 💚 | ||
run: npm install | ||
|
||
- name: Build project | ||
run: npm run build | ||
|
||
- name: Generate project | ||
run: npm run generate |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Integration CD for QAnightly | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize, labeled] | ||
|
||
env: | ||
LABELS: ${{toJSON(github.event.pull_request.labels)}} | ||
|
||
jobs: | ||
integration_deployment: | ||
name: Deploy (integration) | ||
runs-on: ubuntu-latest | ||
environment: integration | ||
if: contains(github.event.pull_request.labels.*.name, 'prestabulle1') || | ||
contains(github.event.pull_request.labels.*.name, 'prestabulle2') || | ||
contains(github.event.pull_request.labels.*.name, 'prestabulle3') | ||
|
||
steps: | ||
- name: Checkout the repository 🎁 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setting up the Bulle variable for later 💬 | ||
run: echo "BULLE=$BULLE$(echo $LABELS > labels.json && cat labels.json | jq -r '.[]|.name'|grep prestabulle)" >> $GITHUB_OUTPUT | ||
id: get_bulle | ||
|
||
- name: Get branch name | ||
id: branch | ||
uses: tj-actions/[email protected] | ||
|
||
- name: Trigger CI / CD | ||
uses: aurelien-baudet/workflow-dispatch@v2 | ||
with: | ||
workflow: integration-cd.yml | ||
repo: PrestaShopCorp/qanightlyresults-cd | ||
inputs: '{ "branch": "${{ steps.branch.outputs.current_branch }}", "bulle": "${{ steps.get_bulle.outputs.BULLE }}", "project": "nightly", "repository": "PrestaShop/nightly-board"}' | ||
token: ${{ secrets.TERRAFORM_ACCESS_TOKEN }} | ||
ref: 'refs/heads/main' |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
eslint: | ||
name: ESLint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14.21 | ||
cache: 'npm' | ||
|
||
- name: Install dependencies 💚 | ||
run: npm install | ||
|
||
- name: Lint | ||
run: npm run lint |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: preprod CD for QAnightly | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
preprod_deployment: | ||
name: Deploy (preprod) | ||
runs-on: ubuntu-latest | ||
environment: preproduction | ||
concurrency: preprod-cd | ||
|
||
steps: | ||
- name: Checkout the repository 🎁 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get branch name | ||
id: branch | ||
uses: tj-actions/[email protected] | ||
|
||
- name: Trigger CI / CD | ||
uses: aurelien-baudet/workflow-dispatch@v2 | ||
with: | ||
workflow: preproduction-cd.yml | ||
repo: PrestaShopCorp/qanightlyresults-cd | ||
inputs: '{ "branch": "${{ steps.branch.outputs.current_branch }}", "project": "nightly", "repository": "PrestaShop/nightly-board"}' | ||
token: ${{ secrets.TERRAFORM_ACCESS_TOKEN }} | ||
ref: 'refs/heads/main' |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: production CD for QAnightly | ||
|
||
on: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
production_deployment: | ||
name: Deploy (production) | ||
runs-on: ubuntu-latest | ||
environment: production | ||
concurrency: production-cd | ||
|
||
steps: | ||
- name: Checkout the repository 🎁 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get branch name | ||
id: branch | ||
uses: tj-actions/[email protected] | ||
|
||
- name: Trigger CI / CD | ||
uses: aurelien-baudet/workflow-dispatch@v2 | ||
with: | ||
workflow: production-cd.yml | ||
repo: PrestaShopCorp/qanightlyresults-cd | ||
inputs: '{ "branch": "${{ steps.branch.outputs.current_branch }}", "project": "nightly", "repository": "PrestaShop/nightly-board"}' | ||
token: ${{ secrets.TERRAFORM_ACCESS_TOKEN }} | ||
ref: 'refs/heads/main' |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
jest: | ||
name: Jest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14.21 | ||
cache: 'npm' | ||
|
||
- name: Install dependencies 💚 | ||
run: npm install | ||
|
||
- name: Lint | ||
run: npm run test |
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,4 +1,4 @@ | ||
FROM node:10.7 | ||
FROM node:14.21 | ||
|
||
RUN mkdir -p /app | ||
EXPOSE 3000 | ||
|
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
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
Oops, something went wrong.