1
0
mirror of synced 2024-11-27 07:46:07 +03:00
api-client-php/.github/workflows/ci.yml

41 lines
1.0 KiB
YAML
Raw Normal View History

2021-06-02 17:00:32 +03:00
name: CI
2020-11-24 14:23:44 +03:00
on:
push:
branches:
- '**'
tags-ignore:
- '*.*'
pull_request:
jobs:
test:
2021-06-02 17:00:32 +03:00
name: "PHPUnit"
2020-11-24 14:23:44 +03:00
runs-on: ubuntu-latest
strategy:
matrix:
2024-03-12 09:59:53 +03:00
php-version: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
2020-11-24 14:23:44 +03:00
steps:
2021-06-02 17:00:32 +03:00
- name: Check out code into the workspace
uses: actions/checkout@v2
2020-11-24 14:23:44 +03:00
- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
2021-06-02 17:00:32 +03:00
coverage: pcov
2020-11-24 14:23:44 +03:00
- name: Composer cache
uses: actions/cache@v2
with:
path: ${{ env.HOME }}/.composer/cache
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies
run: composer install -o
2021-06-02 17:00:32 +03:00
- name: Configure matchers
uses: mheap/phpunit-matcher-action@v1
2020-11-24 14:23:44 +03:00
- name: Run tests
2021-06-02 17:00:32 +03:00
run: composer run-script phpunit-ci
2020-11-24 14:23:44 +03:00
- name: Coverage
uses: codecov/codecov-action@v2
with:
verbose: true