mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Fix CI Full to run both 1.12 and 1.13
This commit is contained in:
parent
4309683c8e
commit
d6caba7fbe
7 changed files with 169 additions and 21 deletions
37
.github/workflows/ci__full.yaml
vendored
37
.github/workflows/ci__full.yaml
vendored
|
|
@ -12,37 +12,62 @@ concurrency:
|
|||
|
||||
jobs:
|
||||
static-checks:
|
||||
name: Static checks
|
||||
strategy:
|
||||
matrix:
|
||||
branch: [ "1.12", "1.13" ]
|
||||
name: "[${{ matrix.branch }}] Static checks"
|
||||
uses: ./.github/workflows/ci_static-checks.yaml
|
||||
with:
|
||||
branch: ${{ matrix.branch }}
|
||||
type: full
|
||||
e2e-mariadb:
|
||||
name: End-to-end tests (MariaDB)
|
||||
strategy:
|
||||
matrix:
|
||||
branch: [ "1.12", "1.13" ]
|
||||
name: "[${{ matrix.branch }}] End-to-end tests (MariaDB)"
|
||||
needs: static-checks
|
||||
uses: ./.github/workflows/ci_e2e-mariadb.yaml
|
||||
with:
|
||||
branch: ${{ matrix.branch }}
|
||||
type: full
|
||||
e2e-mysql:
|
||||
name: End-to-end tests (MySQL)
|
||||
strategy:
|
||||
matrix:
|
||||
branch: [ "1.12", "1.13" ]
|
||||
name: "[${{ matrix.branch }}] End-to-end tests (MySQL)"
|
||||
needs: static-checks
|
||||
uses: ./.github/workflows/ci_e2e-mysql.yaml
|
||||
with:
|
||||
branch: ${{ matrix.branch }}
|
||||
type: full
|
||||
e2e-pgsql:
|
||||
name: End-to-end tests (PostgreSQL)
|
||||
strategy:
|
||||
matrix:
|
||||
branch: [ "1.12", "1.13" ]
|
||||
name: "[${{ matrix.branch }}] End-to-end tests (PostgreSQL)"
|
||||
needs: static-checks
|
||||
uses: ./.github/workflows/ci_e2e-pgsql.yaml
|
||||
with:
|
||||
branch: ${{ matrix.branch }}
|
||||
type: full
|
||||
e2e-custom:
|
||||
name: End-to-end tests (Custom)
|
||||
strategy:
|
||||
matrix:
|
||||
branch: [ "1.12", "1.13" ]
|
||||
name: "[${{ matrix.branch }}] End-to-end tests (Custom)"
|
||||
needs: static-checks
|
||||
uses: ./.github/workflows/ci_e2e-custom.yaml
|
||||
with:
|
||||
branch: ${{ matrix.branch }}
|
||||
packages:
|
||||
name: Packages
|
||||
strategy:
|
||||
matrix:
|
||||
branch: [ "1.12", "1.13" ]
|
||||
name: "[${{ matrix.branch }}] Packages"
|
||||
needs: static-checks
|
||||
uses: ./.github/workflows/ci_packages.yaml
|
||||
with:
|
||||
branch: ${{ matrix.branch }}
|
||||
type: full
|
||||
notify-about-build-status:
|
||||
if: ${{ always() }}
|
||||
|
|
|
|||
17
.github/workflows/ci_e2e-custom.yaml
vendored
17
.github/workflows/ci_e2e-custom.yaml
vendored
|
|
@ -2,7 +2,13 @@ name: End-to-End (Custom)
|
|||
|
||||
on:
|
||||
workflow_dispatch: ~
|
||||
workflow_call: ~
|
||||
workflow_call:
|
||||
inputs:
|
||||
branch:
|
||||
description: "Branch"
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
jobs:
|
||||
behat-no-js-unstable-symfony:
|
||||
|
|
@ -21,7 +27,14 @@ jobs:
|
|||
DATABASE_URL: "mysql://root:root@127.0.0.1/sylius?charset=utf8mb4&serverVersion=${{ matrix.mysql }}"
|
||||
|
||||
steps:
|
||||
-
|
||||
- name: "Checkout (With Branch)"
|
||||
if: "${{ inputs.branch != '' }}"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: "Checkout"
|
||||
if: "${{ inputs.branch == '' }}"
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Get Composer cache directory
|
||||
|
|
|
|||
28
.github/workflows/ci_e2e-mariadb.yaml
vendored
28
.github/workflows/ci_e2e-mariadb.yaml
vendored
|
|
@ -4,6 +4,11 @@ on:
|
|||
workflow_dispatch: ~
|
||||
workflow_call:
|
||||
inputs:
|
||||
branch:
|
||||
description: "Branch"
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
type:
|
||||
description: "Type of the build"
|
||||
required: true
|
||||
|
|
@ -16,9 +21,17 @@ jobs:
|
|||
outputs:
|
||||
matrix: ${{ steps.matrix.outputs.prop }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
-
|
||||
name: "Get matrix"
|
||||
- name: "Checkout (With Branch)"
|
||||
if: "${{ inputs.branch != '' }}"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: "Checkout"
|
||||
uses: actions/checkout@v3
|
||||
if: "${{ inputs.branch == '' }}"
|
||||
|
||||
- name: "Get matrix"
|
||||
id: matrix
|
||||
uses: notiz-dev/github-action-json-property@release
|
||||
with:
|
||||
|
|
@ -39,7 +52,14 @@ jobs:
|
|||
DATABASE_URL: "mysql://root:root@127.0.0.1/sylius?charset=utf8mb4&serverVersion=mariadb-${{ matrix.mariadb }}"
|
||||
|
||||
steps:
|
||||
-
|
||||
- name: "Checkout (With Branch)"
|
||||
if: "${{ inputs.branch != '' }}"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: "Checkout"
|
||||
if: "${{ inputs.branch == '' }}"
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Get Composer cache directory
|
||||
|
|
|
|||
24
.github/workflows/ci_e2e-mysql.yaml
vendored
24
.github/workflows/ci_e2e-mysql.yaml
vendored
|
|
@ -4,6 +4,11 @@ on:
|
|||
workflow_dispatch: ~
|
||||
workflow_call:
|
||||
inputs:
|
||||
branch:
|
||||
description: "Branch"
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
type:
|
||||
description: "Type of the build"
|
||||
required: true
|
||||
|
|
@ -16,7 +21,15 @@ jobs:
|
|||
outputs:
|
||||
matrix: ${{ steps.matrix.outputs.prop }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: "Checkout (With Branch)"
|
||||
if: "${{ inputs.branch != '' }}"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: "Checkout"
|
||||
uses: actions/checkout@v3
|
||||
if: "${{ inputs.branch == '' }}"
|
||||
-
|
||||
name: "Get matrix"
|
||||
id: matrix
|
||||
|
|
@ -39,7 +52,14 @@ jobs:
|
|||
DATABASE_URL: "mysql://root:root@127.0.0.1/sylius?charset=utf8mb4&serverVersion=${{ matrix.mysql }}"
|
||||
|
||||
steps:
|
||||
-
|
||||
- name: "Checkout (With Branch)"
|
||||
if: "${{ inputs.branch != '' }}"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: "Checkout"
|
||||
if: "${{ inputs.branch == '' }}"
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Get Composer cache directory
|
||||
|
|
|
|||
14
.github/workflows/ci_e2e-pgsql.yaml
vendored
14
.github/workflows/ci_e2e-pgsql.yaml
vendored
|
|
@ -4,6 +4,11 @@ on:
|
|||
workflow_dispatch: ~
|
||||
workflow_call:
|
||||
inputs:
|
||||
branch:
|
||||
description: "Branch"
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
type:
|
||||
description: "Type of the build"
|
||||
required: true
|
||||
|
|
@ -38,7 +43,14 @@ jobs:
|
|||
DATABASE_URL: "pgsql://postgres:postgres@127.0.0.1/sylius?charset=utf8&serverVersion=${{ matrix.postgres }}"
|
||||
|
||||
steps:
|
||||
-
|
||||
- name: "Checkout (With Branch)"
|
||||
if: "${{ inputs.branch != '' }}"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: "Checkout"
|
||||
if: "${{ inputs.branch == '' }}"
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Get Composer cache directory
|
||||
|
|
|
|||
45
.github/workflows/ci_packages.yaml
vendored
45
.github/workflows/ci_packages.yaml
vendored
|
|
@ -4,6 +4,11 @@ on:
|
|||
workflow_dispatch: ~
|
||||
workflow_call:
|
||||
inputs:
|
||||
branch:
|
||||
description: "Branch"
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
type:
|
||||
description: "Type of the build"
|
||||
required: true
|
||||
|
|
@ -16,7 +21,16 @@ jobs:
|
|||
outputs:
|
||||
matrix: ${{ steps.matrix.outputs.prop }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: "Checkout (With Branch)"
|
||||
if: "${{ inputs.branch != '' }}"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: "Checkout"
|
||||
if: "${{ inputs.branch == '' }}"
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: "Get matrix"
|
||||
id: matrix
|
||||
uses: notiz-dev/github-action-json-property@release
|
||||
|
|
@ -30,7 +44,16 @@ jobs:
|
|||
outputs:
|
||||
matrix: ${{ steps.matrix.outputs.prop }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: "Checkout (With Branch)"
|
||||
if: "${{ inputs.branch != '' }}"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: "Checkout"
|
||||
if: "${{ inputs.branch == '' }}"
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: "Get matrix"
|
||||
id: matrix
|
||||
uses: notiz-dev/github-action-json-property@release
|
||||
|
|
@ -53,7 +76,14 @@ jobs:
|
|||
SYMFONY_VERSION: "${{ matrix.symfony }}"
|
||||
|
||||
steps:
|
||||
-
|
||||
- name: "Checkout (With Branch)"
|
||||
if: "${{ inputs.branch != '' }}"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: "Checkout"
|
||||
if: "${{ inputs.branch == '' }}"
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup PHP
|
||||
|
|
@ -105,7 +135,14 @@ jobs:
|
|||
PACKAGES: '["Bundle/CoreBundle", "Bundle/ApiBundle", "Bundle/AdminBundle"]'
|
||||
|
||||
steps:
|
||||
-
|
||||
- name: "Checkout (With Branch)"
|
||||
if: "${{ inputs.branch != '' }}"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: "Checkout"
|
||||
if: "${{ inputs.branch == '' }}"
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup PHP
|
||||
|
|
|
|||
25
.github/workflows/ci_static-checks.yaml
vendored
25
.github/workflows/ci_static-checks.yaml
vendored
|
|
@ -4,6 +4,11 @@ on:
|
|||
workflow_dispatch: ~
|
||||
workflow_call:
|
||||
inputs:
|
||||
branch:
|
||||
description: "Branch"
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
type:
|
||||
description: "Type of the build"
|
||||
required: true
|
||||
|
|
@ -16,7 +21,16 @@ jobs:
|
|||
outputs:
|
||||
matrix: ${{ steps.matrix.outputs.prop }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: "Checkout (With Branch)"
|
||||
if: "${{ inputs.branch != '' }}"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: "Checkout"
|
||||
if: "${{ inputs.branch == '' }}"
|
||||
uses: actions/checkout@v3
|
||||
|
||||
-
|
||||
name: "Get matrix"
|
||||
id: matrix
|
||||
|
|
@ -33,7 +47,14 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix) }}
|
||||
steps:
|
||||
-
|
||||
- name: "Checkout (With Branch)"
|
||||
if: "${{ inputs.branch != '' }}"
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- name: "Checkout"
|
||||
if: "${{ inputs.branch == '' }}"
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: "Setup PHP"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue