Add invite statement. #59
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
on: | |
push: | |
branches: | |
- main | |
- master | |
- 'release/**' | |
pull_request: | |
branches: | |
- main | |
- master | |
- 'release/**' | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up environment | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
extensions: mbstring, xml, ctype, iconv, intl | |
coverage: xdebug | |
- name: Install Composer dependencies | |
run: ./composer.phar install --no-progress --prefer-dist --optimize-autoloader | |
- name: Run Tests | |
run: vendor/bin/phpunit --coverage-text | |
- name: Deploy package to package repository | |
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push' | |
run: | | |
git tag ${GITHUB_REF/refs\/heads\/release\//}.$GITHUB_RUN_NUMBER | |
git push origin ${GITHUB_REF/refs\/heads\/release\//}.$GITHUB_RUN_NUMBER | |