You've already forked Php-Template
chore: update test configurations and ignore files for coverage reporting
Some checks failed
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 1m31s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 1m49s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 1m32s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 1m40s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Successful in 1m38s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Failing after 1m53s
Some checks failed
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 1m31s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 1m49s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 1m32s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 1m40s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Successful in 1m38s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Failing after 1m53s
This commit is contained in:
@@ -2,3 +2,4 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
vendor/
|
vendor/
|
||||||
.phpunit.cache/
|
.phpunit.cache/
|
||||||
|
tests/
|
||||||
@@ -246,10 +246,20 @@ jobs:
|
|||||||
siteworxpro/composer \
|
siteworxpro/composer \
|
||||||
install --ignore-platform-reqs --no-interaction --prefer-dist --optimize-autoloader
|
install --ignore-platform-reqs --no-interaction --prefer-dist --optimize-autoloader
|
||||||
|
|
||||||
- name: Run Unit Tests
|
- name: 🧪 ✅ Run Unit Tests
|
||||||
|
uses: addnab/docker-run-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
image: siteworxpro/composer
|
||||||
|
options: --volumes-from ${{ env.JOB_CONTAINER_NAME }} -w ${{ gitea.workspace }}
|
||||||
run: |
|
run: |
|
||||||
docker run --rm \
|
bin/pcov.sh
|
||||||
--volumes-from ${{ env.JOB_CONTAINER_NAME }} \
|
composer run tests:unit:coverage
|
||||||
-w ${{ github.workspace }} \
|
|
||||||
siteworxpro/composer \
|
- name: 📦 Publish Build Artifacts
|
||||||
run tests:unit
|
uses: christopherhx/gitea-upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ github.ref_name }}-junit-coverage.xml
|
||||||
|
path: tests/reports/junit.xml
|
||||||
|
retention-days: 1
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,3 +2,5 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
vendor/
|
vendor/
|
||||||
.phpunit.cache/
|
.phpunit.cache/
|
||||||
|
|
||||||
|
tests/reports/
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
include:
|
|
||||||
- local: .gitlab/ci/stages.yml
|
|
||||||
- local: .gitlab/ci/tests.yml
|
|
||||||
- local: .gitlab/ci/libraries.yml
|
|
||||||
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
Install Composer Libraries:
|
|
||||||
stage: libraries
|
|
||||||
image: siteworxpro/composer:latest
|
|
||||||
rules:
|
|
||||||
- if: '$CI_COMMIT_TAG'
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "push"'
|
|
||||||
when: always
|
|
||||||
- when: never
|
|
||||||
script:
|
|
||||||
- composer install --ignore-platform-reqs
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- vendor/
|
|
||||||
expire_in: 1 hour
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
stages:
|
|
||||||
- libraries
|
|
||||||
- tests
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
Unit Tests:
|
|
||||||
stage: tests
|
|
||||||
needs:
|
|
||||||
- Install Composer Libraries
|
|
||||||
rules:
|
|
||||||
- if: '$CI_COMMIT_TAG'
|
|
||||||
when: never
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "push"'
|
|
||||||
when: always
|
|
||||||
- when: never
|
|
||||||
image: siteworxpro/composer
|
|
||||||
before_script: |
|
|
||||||
bin/pcov.sh
|
|
||||||
script: |
|
|
||||||
echo "Running unit tests..."
|
|
||||||
composer run tests:unit:coverage
|
|
||||||
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
|
|
||||||
artifacts:
|
|
||||||
expire_in: 1 day
|
|
||||||
reports:
|
|
||||||
junit: tests/reports/junit.xml
|
|
||||||
paths:
|
|
||||||
- tests/reports/
|
|
||||||
|
|
||||||
Run License Check:
|
|
||||||
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:license
|
|
||||||
|
|
||||||
Run Code Lint:
|
|
||||||
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: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
|
|
||||||
Reference in New Issue
Block a user