This commit is contained in:
2025-04-25 20:59:13 -04:00
parent e84c7cf9ad
commit 60b758e995
14 changed files with 795 additions and 34 deletions

2
.gitlab/ci/stages.yml Normal file
View File

@@ -0,0 +1,2 @@
stages:
- tests

40
.gitlab/ci/tests.yml Normal file
View File

@@ -0,0 +1,40 @@
Unit Tests:
rules:
- if: '$CI_COMMIT_TAG'
when: never
- if: '$CI_PIPELINE_SOURCE == "push"'
when: always
- when: never
stage: test
image: siteworxpro/composer
script:
- echo "Running unit tests..."
- composer run tests:unit
Run License Check:
stage: test
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:license
Run Code Lint:
stage: test
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:lint