This commit is contained in:
2025-04-25 22:27:47 -04:00
parent ac99a78bdf
commit d5167074a0
17 changed files with 173 additions and 30 deletions

View File

@@ -9,9 +9,15 @@ Unit Tests:
when: always
- when: never
image: siteworxpro/composer
before_script: |
bin/pcov.sh
script:
- echo "Running unit tests..."
- composer run tests:unit
artifacts:
expire_in: 1 day
paths:
- tests/reports/
Run License Check:
stage: tests
@@ -42,15 +48,15 @@ Run Code Lint:
- composer run tests:lint
Run Code Sniffer:
stage: tests
needs:
- Install Composer Libraries
rules:
- if: '$CI_COMMIT_TAG'
when: never
- if: '$CI_PIPELINE_SOURCE == "push"'
when: on_success
- when: never
image: siteworxpro/composer
script:
- composer run tests:phpstan
stage: tests
needs:
- Install Composer Libraries
rules:
- if: '$CI_COMMIT_TAG'
when: never
- if: '$CI_PIPELINE_SOURCE == "push"'
when: on_success
- when: never
image: siteworxpro/composer
script:
- composer run tests:phpstan