Skip to content

FastCGI Client CI PHP 7.1 - 8.1 #1283

FastCGI Client CI PHP 7.1 - 8.1

FastCGI Client CI PHP 7.1 - 8.1 #1283

Workflow file for this run

name: FastCGI Client CI PHP 7.1 - 8.1
on:
push:
branches:
- master
- development
tags:
- 'v*.*.*'
pull_request:
schedule:
- cron: "7 7 * * *"
jobs:
static-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pull docker services
run: make dcpull
- name: Install tools
run: make install-tools
- name: Composer validate
run: make composer-validate
- name: Composer update
run: make composer-update
- name: PHP linting
run: make phplint
- name: Run PHPStan
run: make phpstan
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"
steps:
- uses: actions/checkout@v2
- name: Pull docker services
run: make dcpull
- name: Install tools
run: make install-tools
- name: Build environment
run: make composer-update
- name: Pull extension installer
run: make pull-extension-installer
- name: Configure PHPUnit matchers
uses: mheap/phpunit-matcher-action@v1
- name: Run unit tests on PHP ${{ matrix.php }}
run: make -s -e "PHPUNIT_OPTIONS=--teamcity" "test-php-${{ matrix.php }}"
env:
COMPOSE_INTERACTIVE_NO_CLI: 1
PHPUNIT_OPTIONS: "--teamcity"
release:
needs:
- static-analysis
- tests
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Extract version
id: data
run: |
# Strip git ref prefix from version
RELEASE_VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && RELEASE_VERSION=$(echo $RELEASE_VERSION | sed -e 's/^v//')
echo $RELEASE_VERSION
echo "##[set-output name=version;]$RELEASE_VERSION"
- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: Version ${{ steps.data.outputs.version }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}