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>
This commit is contained in:
2026-02-15 16:02:22 -05:00
parent 7826a91d94
commit 5ce96d4b2a
14 changed files with 4262 additions and 36 deletions

51
.github/workflows/build-test.yml vendored Normal file
View File

@@ -0,0 +1,51 @@
name: Build Test
on:
pull_request:
jobs:
test-single-module:
name: Single Module (No Dependencies)
runs-on: ubuntu-latest
steps:
- name: Retrieve Server Install Action
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
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
- name: Install dependencies
run: npm ci
working-directory: server/modules/provider_jmapc
- name: Build
run: npm run build
working-directory: server/modules/provider_jmapc