mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-27 21:39:32 +00:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: PHP Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
run:
|
|
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
|
|
runs-on: ${{ matrix.operating-system }}
|
|
strategy:
|
|
matrix:
|
|
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
|
php-versions: ['7.2', '7.3', '7.4']
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php-versions }}
|
|
coverage: pcov
|
|
extensions: mbstring, intl, gd, xsl, gmp, bcmath
|
|
|
|
- name: Install composer dependencies
|
|
run: composer install --prefer-dist --no-progress
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '12'
|
|
|
|
- name: Install yarn dependencies
|
|
run: yarn install
|
|
|
|
- name: Build frontend
|
|
run: yarn build
|
|
|
|
- name: Run PHPunit
|
|
run: ./bin/phpunit --exclude-group DB
|