SECURITY-480: remove old fixtures #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}\"}}" |