[OP-1123] Bumped deprecated GHAs in ci.yml file #11
Workflow file for this run
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: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
static-analyze: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v4 | |
with: | |
path: vendor | |
key: composer-${{ hashFiles('composer.lock') }} | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- run: vendor/bin/phpstan analyse -c phpstan.neon | |
# - run: vendor/bin/ecs check --config vendor/landingi/php-coding-standards/ecs.php | |
tests: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v4 | |
with: | |
path: vendor | |
key: composer-${{ hashFiles('composer.lock') }} | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- run: vendor/bin/phpunit --testsuite all --coverage-clover=build/coverage.xml | |
- run: bash <(curl -s https://codecov.io/bash) -f build/coverage.xml |