Compare commits

..

1 Commits

Author SHA1 Message Date
5ce96d4b2a chore: implement basic tests
Some checks failed
JS Unit Tests / test (pull_request) Failing after 12s
Build Test / Single Module (No Dependencies) (pull_request) Successful in 23s
PHP Unit Tests / test (pull_request) Successful in 50s
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-02-15 21:57:39 -05:00
2 changed files with 9 additions and 60 deletions

View File

@@ -7,43 +7,17 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Retrieve Server Install Action
- name: Checkout
uses: actions/checkout@v6.0.2
with:
repository: Nodarx/action-server-install
ref: main
path: action-server-install
github-server-url: https://git.ktrix.dev
- name: Install Server Environment
uses: ./action-server-install
- name: Set up Node.js
uses: actions/setup-node@v6.2.0
with:
install-php: 'false'
install-node: 'true'
php-version: '8.5'
node-version: '24'
server-path: './server'
- name: Install Mail Manager Module
uses: actions/checkout@v6.0.2
with:
repository: Nodarx/mail_manager
ref: main
path: server/modules/mail_manager
github-server-url: https://git.ktrix.dev
- name: Checkout PR Module
uses: actions/checkout@v6.0.2
with:
repository: ${{ github.repository }}
ref: ${{ github.event.pull_request.head.sha }}
path: server/modules/provider_jmapc
github-server-url: https://git.ktrix.dev
cache: 'npm'
- name: Install dependencies
run: npm ci
working-directory: server/modules/provider_jmapc
- name: Run tests
run: npm run test:unit
working-directory: server/modules/provider_jmapc

View File

@@ -7,43 +7,18 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Retrieve Server Install Action
- name: Checkout
uses: actions/checkout@v6.0.2
with:
repository: Nodarx/action-server-install
ref: main
path: action-server-install
github-server-url: https://git.ktrix.dev
- name: Install Server Environment
uses: ./action-server-install
- name: Set up PHP
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1
with:
install-php: 'true'
install-node: 'false'
php-version: '8.5'
node-version: '24'
server-path: './server'
- name: Install Mail Manager Module
uses: actions/checkout@v6.0.2
with:
repository: Nodarx/mail_manager
ref: main
path: server/modules/mail_manager
github-server-url: https://git.ktrix.dev
- name: Checkout PR Module
uses: actions/checkout@v6.0.2
with:
repository: ${{ github.repository }}
ref: ${{ github.event.pull_request.head.sha }}
path: server/modules/provider_jmapc
github-server-url: https://git.ktrix.dev
tools: composer:v2
extensions: ctype, iconv, mongodb
- name: Install dependencies
run: composer install --prefer-dist --no-progress
working-directory: server/modules/provider_jmapc
- name: Run tests
run: composer test:unit
working-directory: server/modules/provider_jmapc