Compare commits
1 Commits
5ce96d4b2a
...
a75d676fa1
| Author | SHA1 | Date | |
|---|---|---|---|
| a75d676fa1 |
36
.github/workflows/js-unit-tests.yml
vendored
36
.github/workflows/js-unit-tests.yml
vendored
@@ -7,17 +7,43 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Retrieve Server Install Action
|
||||||
uses: actions/checkout@v6.0.2
|
uses: actions/checkout@v6.0.2
|
||||||
|
|
||||||
- name: Set up Node.js
|
|
||||||
uses: actions/setup-node@v6.2.0
|
|
||||||
with:
|
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'
|
node-version: '24'
|
||||||
cache: 'npm'
|
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
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
working-directory: server/modules/provider_jmapc
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm run test:unit
|
run: npm run test:unit
|
||||||
|
working-directory: server/modules/provider_jmapc
|
||||||
|
|||||||
37
.github/workflows/php-unit-tests.yml
vendored
37
.github/workflows/php-unit-tests.yml
vendored
@@ -7,18 +7,43 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Retrieve Server Install Action
|
||||||
uses: actions/checkout@v6.0.2
|
uses: actions/checkout@v6.0.2
|
||||||
|
|
||||||
- name: Set up PHP
|
|
||||||
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1
|
|
||||||
with:
|
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: 'true'
|
||||||
|
install-node: 'false'
|
||||||
php-version: '8.5'
|
php-version: '8.5'
|
||||||
tools: composer:v2
|
node-version: '24'
|
||||||
extensions: ctype, iconv, mongodb
|
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
|
- name: Install dependencies
|
||||||
run: composer install --prefer-dist --no-progress
|
run: composer install --prefer-dist --no-progress
|
||||||
|
working-directory: server/modules/provider_jmapc
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: composer test:unit
|
run: composer test:unit
|
||||||
|
working-directory: server/modules/provider_jmapc
|
||||||
|
|||||||
Reference in New Issue
Block a user