Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! Upload php-dependencies as …
Browse files Browse the repository at this point in the history
…artifact
  • Loading branch information
MortalFlesh committed Dec 2, 2022
1 parent 576bb5d commit 8b160b8
Showing 1 changed file with 56 additions and 6 deletions.
62 changes: 56 additions & 6 deletions .github/workflows/php-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
with:
php-version: 8.1
extensions: mbstring, intl
coverage: xdebug

# Prepare application
- name: '[INIT] Check composer.json'
Expand All @@ -48,9 +47,37 @@ jobs:
tools-dependencies.tar
if-no-files-found: error

checks:
checks-phpstan:
runs-on: ubuntu-latest
name: Check application
name: Check application - phpstan
needs:
- composer
steps:
# Setup
- uses: actions/checkout@v3

- name: '[PHP] Setup'
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: mbstring, intl

# Prepare application
- name: '[ARTIFACT] Download artifact'
uses: actions/download-artifact@v3

- name: '[ARTIFACT] Extract dependencies'
run: |
ls -l php-dependencies
tar -xf php-dependencies/bin.tar
# Check application
- name: '[CHECK] phpstan'
run: composer phpstan

checks-analyze:
runs-on: ubuntu-latest
name: Check application - analyze
needs:
- composer
steps:
Expand All @@ -62,7 +89,6 @@ jobs:
with:
php-version: 8.1
extensions: mbstring, intl
coverage: xdebug

# Prepare application
- name: '[ARTIFACT] Download artifact'
Expand All @@ -79,9 +105,33 @@ jobs:
- name: '[CHECK] analyze'
run: composer analyze

- name: '[CHECK] phpstan'
run: composer phpstan
checks-tests:
runs-on: ubuntu-latest
name: Check application - tests
needs:
- composer
steps:
# Setup
- uses: actions/checkout@v3

- name: '[PHP] Setup'
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: mbstring, intl
coverage: xdebug

# Prepare application
- name: '[ARTIFACT] Download artifact'
uses: actions/download-artifact@v3

- name: '[ARTIFACT] Extract dependencies'
run: |
ls -l php-dependencies
tar -xf php-dependencies/bin.tar
tar -xf php-dependencies/php-dependencies.tar
# Check application
- name: '[CHECK] Unit tests'
run: composer tests-ci

Expand Down

0 comments on commit 8b160b8

Please sign in to comment.