Skip to content

Commit

Permalink
Sync github workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
LastDragon-ru committed Jan 20, 2021
1 parent 012be6a commit d569f22
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 78 deletions.
25 changes: 12 additions & 13 deletions packages/core/.github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: PHPUnit

on:
- push
- pull_request
push:
pull_request:
schedule:
- cron: "0 0 */7 * *"

jobs:
settings:
Expand All @@ -11,18 +13,21 @@ jobs:
outputs:
versions: ${{ steps.versions.outputs.value }}
extensions: ${{ steps.extensions.outputs.value }}
skipped: ${{ steps.skipped.outputs.value }}
dependencies: ${{ steps.dependencies.outputs.value }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Detect composer.lock
id: skipped
- name: Detect dependencies versions
id: dependencies
run: |
echo "::set-output name=value::$([ -f "composer.lock" ] || echo "locked")"
DEPS_HIGHEST="highest"
DEPS_LOCKED="$(if [ -f "composer.lock" ] && [ ! "$GITHUB_EVENT_NAME" == "schedule" ]; then echo "locked"; fi)"
DEPS_LOWEST="$([ ! "$GITHUB_EVENT_NAME" == "schedule" ] && echo "lowest")"
echo "::set-output name=value::$(echo "[\"$DEPS_HIGHEST\", \"$DEPS_LOCKED\", \"$DEPS_LOWEST\"]" | jq "[.[] | select(length > 0)]" -r -c)"
- name: Detect PHP versions
id: versions
run: |
Expand Down Expand Up @@ -51,13 +56,7 @@ jobs:
beta:
- false
php: ${{ fromJson(needs.settings.outputs.versions) }}
dependencies:
- locked
- highest
- lowest

exclude:
- dependencies: ${{ needs.settings.outputs.skipped }}
dependencies: ${{ fromJson(needs.settings.outputs.dependencies) }}

steps:
- name: Checkout
Expand Down
25 changes: 12 additions & 13 deletions packages/eloquent/.github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: PHPUnit

on:
- push
- pull_request
push:
pull_request:
schedule:
- cron: "0 0 */7 * *"

jobs:
settings:
Expand All @@ -11,18 +13,21 @@ jobs:
outputs:
versions: ${{ steps.versions.outputs.value }}
extensions: ${{ steps.extensions.outputs.value }}
skipped: ${{ steps.skipped.outputs.value }}
dependencies: ${{ steps.dependencies.outputs.value }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Detect composer.lock
id: skipped
- name: Detect dependencies versions
id: dependencies
run: |
echo "::set-output name=value::$([ -f "composer.lock" ] || echo "locked")"
DEPS_HIGHEST="highest"
DEPS_LOCKED="$(if [ -f "composer.lock" ] && [ ! "$GITHUB_EVENT_NAME" == "schedule" ]; then echo "locked"; fi)"
DEPS_LOWEST="$([ ! "$GITHUB_EVENT_NAME" == "schedule" ] && echo "lowest")"
echo "::set-output name=value::$(echo "[\"$DEPS_HIGHEST\", \"$DEPS_LOCKED\", \"$DEPS_LOWEST\"]" | jq "[.[] | select(length > 0)]" -r -c)"
- name: Detect PHP versions
id: versions
run: |
Expand Down Expand Up @@ -51,13 +56,7 @@ jobs:
beta:
- false
php: ${{ fromJson(needs.settings.outputs.versions) }}
dependencies:
- locked
- highest
- lowest

exclude:
- dependencies: ${{ needs.settings.outputs.skipped }}
dependencies: ${{ fromJson(needs.settings.outputs.dependencies) }}

steps:
- name: Checkout
Expand Down
25 changes: 12 additions & 13 deletions packages/formatter/.github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: PHPUnit

on:
- push
- pull_request
push:
pull_request:
schedule:
- cron: "0 0 */7 * *"

jobs:
settings:
Expand All @@ -11,18 +13,21 @@ jobs:
outputs:
versions: ${{ steps.versions.outputs.value }}
extensions: ${{ steps.extensions.outputs.value }}
skipped: ${{ steps.skipped.outputs.value }}
dependencies: ${{ steps.dependencies.outputs.value }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Detect composer.lock
id: skipped
- name: Detect dependencies versions
id: dependencies
run: |
echo "::set-output name=value::$([ -f "composer.lock" ] || echo "locked")"
DEPS_HIGHEST="highest"
DEPS_LOCKED="$(if [ -f "composer.lock" ] && [ ! "$GITHUB_EVENT_NAME" == "schedule" ]; then echo "locked"; fi)"
DEPS_LOWEST="$([ ! "$GITHUB_EVENT_NAME" == "schedule" ] && echo "lowest")"
echo "::set-output name=value::$(echo "[\"$DEPS_HIGHEST\", \"$DEPS_LOCKED\", \"$DEPS_LOWEST\"]" | jq "[.[] | select(length > 0)]" -r -c)"
- name: Detect PHP versions
id: versions
run: |
Expand Down Expand Up @@ -51,13 +56,7 @@ jobs:
beta:
- false
php: ${{ fromJson(needs.settings.outputs.versions) }}
dependencies:
- locked
- highest
- lowest

exclude:
- dependencies: ${{ needs.settings.outputs.skipped }}
dependencies: ${{ fromJson(needs.settings.outputs.dependencies) }}

steps:
- name: Checkout
Expand Down
25 changes: 12 additions & 13 deletions packages/migrator/.github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: PHPUnit

on:
- push
- pull_request
push:
pull_request:
schedule:
- cron: "0 0 */7 * *"

jobs:
settings:
Expand All @@ -11,18 +13,21 @@ jobs:
outputs:
versions: ${{ steps.versions.outputs.value }}
extensions: ${{ steps.extensions.outputs.value }}
skipped: ${{ steps.skipped.outputs.value }}
dependencies: ${{ steps.dependencies.outputs.value }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Detect composer.lock
id: skipped
- name: Detect dependencies versions
id: dependencies
run: |
echo "::set-output name=value::$([ -f "composer.lock" ] || echo "locked")"
DEPS_HIGHEST="highest"
DEPS_LOCKED="$(if [ -f "composer.lock" ] && [ ! "$GITHUB_EVENT_NAME" == "schedule" ]; then echo "locked"; fi)"
DEPS_LOWEST="$([ ! "$GITHUB_EVENT_NAME" == "schedule" ] && echo "lowest")"
echo "::set-output name=value::$(echo "[\"$DEPS_HIGHEST\", \"$DEPS_LOCKED\", \"$DEPS_LOWEST\"]" | jq "[.[] | select(length > 0)]" -r -c)"
- name: Detect PHP versions
id: versions
run: |
Expand Down Expand Up @@ -51,13 +56,7 @@ jobs:
beta:
- false
php: ${{ fromJson(needs.settings.outputs.versions) }}
dependencies:
- locked
- highest
- lowest

exclude:
- dependencies: ${{ needs.settings.outputs.skipped }}
dependencies: ${{ fromJson(needs.settings.outputs.dependencies) }}

steps:
- name: Checkout
Expand Down
25 changes: 12 additions & 13 deletions packages/queue/.github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: PHPUnit

on:
- push
- pull_request
push:
pull_request:
schedule:
- cron: "0 0 */7 * *"

jobs:
settings:
Expand All @@ -11,18 +13,21 @@ jobs:
outputs:
versions: ${{ steps.versions.outputs.value }}
extensions: ${{ steps.extensions.outputs.value }}
skipped: ${{ steps.skipped.outputs.value }}
dependencies: ${{ steps.dependencies.outputs.value }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Detect composer.lock
id: skipped
- name: Detect dependencies versions
id: dependencies
run: |
echo "::set-output name=value::$([ -f "composer.lock" ] || echo "locked")"
DEPS_HIGHEST="highest"
DEPS_LOCKED="$(if [ -f "composer.lock" ] && [ ! "$GITHUB_EVENT_NAME" == "schedule" ]; then echo "locked"; fi)"
DEPS_LOWEST="$([ ! "$GITHUB_EVENT_NAME" == "schedule" ] && echo "lowest")"
echo "::set-output name=value::$(echo "[\"$DEPS_HIGHEST\", \"$DEPS_LOCKED\", \"$DEPS_LOWEST\"]" | jq "[.[] | select(length > 0)]" -r -c)"
- name: Detect PHP versions
id: versions
run: |
Expand Down Expand Up @@ -51,13 +56,7 @@ jobs:
beta:
- false
php: ${{ fromJson(needs.settings.outputs.versions) }}
dependencies:
- locked
- highest
- lowest

exclude:
- dependencies: ${{ needs.settings.outputs.skipped }}
dependencies: ${{ fromJson(needs.settings.outputs.dependencies) }}

steps:
- name: Checkout
Expand Down
25 changes: 12 additions & 13 deletions packages/testing/.github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: PHPUnit

on:
- push
- pull_request
push:
pull_request:
schedule:
- cron: "0 0 */7 * *"

jobs:
settings:
Expand All @@ -11,18 +13,21 @@ jobs:
outputs:
versions: ${{ steps.versions.outputs.value }}
extensions: ${{ steps.extensions.outputs.value }}
skipped: ${{ steps.skipped.outputs.value }}
dependencies: ${{ steps.dependencies.outputs.value }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Detect composer.lock
id: skipped
- name: Detect dependencies versions
id: dependencies
run: |
echo "::set-output name=value::$([ -f "composer.lock" ] || echo "locked")"
DEPS_HIGHEST="highest"
DEPS_LOCKED="$(if [ -f "composer.lock" ] && [ ! "$GITHUB_EVENT_NAME" == "schedule" ]; then echo "locked"; fi)"
DEPS_LOWEST="$([ ! "$GITHUB_EVENT_NAME" == "schedule" ] && echo "lowest")"
echo "::set-output name=value::$(echo "[\"$DEPS_HIGHEST\", \"$DEPS_LOCKED\", \"$DEPS_LOWEST\"]" | jq "[.[] | select(length > 0)]" -r -c)"
- name: Detect PHP versions
id: versions
run: |
Expand Down Expand Up @@ -51,13 +56,7 @@ jobs:
beta:
- false
php: ${{ fromJson(needs.settings.outputs.versions) }}
dependencies:
- locked
- highest
- lowest

exclude:
- dependencies: ${{ needs.settings.outputs.skipped }}
dependencies: ${{ fromJson(needs.settings.outputs.dependencies) }}

steps:
- name: Checkout
Expand Down

0 comments on commit d569f22

Please sign in to comment.