Update tests.yml

This commit is contained in:
Jan Böhmer 2020-05-25 21:55:09 +02:00 committed by GitHub
parent cb547a1d18
commit 2685d5e1c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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