Browse Source

Merge pull request #314 from pressbooks/ci-pipeline-update

Add PHP 8.0 to text matrix
pull/316/head
Oscar Arzola 3 years ago committed by GitHub
parent
commit
fcbc0ded74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      .github/workflows/.pipeline.yml

16
.github/workflows/.pipeline.yml

@ -13,12 +13,12 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
php: [ 7.3 ] php: [ 7.3, 7.4 ]
os: [ ubuntu-20.04 ] os: [ ubuntu-20.04 ]
wordpress: [ 5.9 ] wordpress: [ 5.9 ]
experimental: [ false ] experimental: [ false ]
include: include:
- php: 7.4 - php: 8.0
os: ubuntu-20.04 os: ubuntu-20.04
wordpress: latest wordpress: latest
experimental: true experimental: true
@ -84,17 +84,17 @@ jobs:
- name: Install WP tests - name: Install WP tests
run: bash bin/install-wp-tests.sh wordpress_test root root localhost ${{ matrix.wordpress }} run: bash bin/install-wp-tests.sh wordpress_test root root localhost ${{ matrix.wordpress }}
- name: Run PHP Test and PCOV - name: Run PHP Tests
run: composer test
if: matrix.experimental == true
- name: Run PHP Tests and PCOV
run: composer test-coverage run: composer test-coverage
if: matrix.experimental == false if: matrix.experimental == false
- name: Upload Coverage to Codecov - name: Upload Coverage to Codecov
run: bash <(curl -s https://codecov.io/bash) run: bash <(curl -s https://codecov.io/bash)
if: matrix.experimental == false if: matrix.experimental == false && matrix.php == 7.3
- name: Run PHP Tests
run: composer test
if: matrix.experimental == true
- name: Prepare Build - name: Prepare Build
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')

Loading…
Cancel
Save