Skip to content

NTR - optimize github actions #26

NTR - optimize github actions

NTR - optimize github actions #26

Workflow file for this run

name: ci
on:
pull_request:
types: [opened, synchronize]
jobs:
build:
strategy:
matrix:
php: ['7.2','7.3','7.4','8.0', '8.1', '8.2']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
coverage: false
- name: Install Dependencies
run: composer update --prefer-dist --no-interaction
- name: run tests
run: composer test
- name: run analyze
run: composer analyze
coverage:
strategy:
matrix:
php: ['8.3']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer
coverage: xdebug
- name: Install Dependencies
run: composer update --prefer-dist --no-interaction
- name: run tests
run: composer test
- name: run analyze
run: composer analyze
- name: Make code coverage badge
uses: timkrase/[email protected]
with:
coverage_badge_path: output/coverage.svg
push_badge: false