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