Skip to content

SECURITY-480: compatibility with the central test suite #9

SECURITY-480: compatibility with the central test suite

SECURITY-480: compatibility with the central test suite #9

Workflow file for this run

name: PHP
on:
push:
branches: [ master ]
tags:
- 'v*'
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
steps:
- name: Install prerequesits
run: sudo apt update && sudo apt install -y php-mbstring
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring
tools: composer
- name: Install dependencies
run: composer update && composer install
- name: Test
run: composer test
- name: Deploy
if: startsWith(github.ref, 'refs/tags') && matrix.php-versions == '8.3'
run: |
curl -XPOST -f -H'content-type:application/json' "https://packagist.org/api/update-package?username=emartech&apiToken=${{secrets.PACKAGIST_API_TOKEN}}" -d"{\"repository\":{\"url\":\"${{secrets.PACKAGIST_PACKAGE_URL}}\"}}"