mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Update tests.yml
This commit is contained in:
parent
cb547a1d18
commit
2685d5e1c4
1 changed files with 22 additions and 22 deletions
44
.github/workflows/tests.yml
vendored
44
.github/workflows/tests.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: PHP Composer
|
name: PHP Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -8,36 +8,36 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
|
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
|
||||||
runs-on: ${{ matrix.operating-system }}
|
runs-on: ${{ matrix.operating-system }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
php-versions: ['7.2', '7.3', '7.4']
|
php-versions: ['7.2', '7.3', '7.4']
|
||||||
extensions: [mbstring, intl, gd, xsl, gmp, bcmath]
|
extensions: [mbstring, intl, gd, xsl, gmp, bcmath]
|
||||||
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup PHP
|
|
||||||
uses: shivammathur/setup-php@v2
|
|
||||||
with:
|
|
||||||
php-version: ${{ matrix.php-versions }}
|
|
||||||
coverage: pcov
|
|
||||||
|
|
||||||
- name: Install composer dependencies
|
- name: Setup PHP
|
||||||
run: composer install --prefer-dist --no-progress
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
coverage: pcov
|
||||||
|
|
||||||
|
- name: Install composer dependencies
|
||||||
|
run: composer install --prefer-dist --no-progress
|
||||||
|
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: '12'
|
node-version: '12'
|
||||||
|
|
||||||
- name: Install yarn dependencies
|
- name: Install yarn dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
|
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
- name: Run PHPunit
|
- name: Run PHPunit
|
||||||
run: ./bin/phpunit
|
run: ./bin/phpunit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue