Skip to content

[OP-1123] Bump GHAs actions/checkout@v2 -> v4, actions/cache@v3 -> v4 #10

[OP-1123] Bump GHAs actions/checkout@v2 -> v4, actions/cache@v3 -> v4

[OP-1123] Bump GHAs actions/checkout@v2 -> v4, actions/cache@v3 -> v4 #10

Workflow file for this run

# on:
# pull_request:
# push:
# branches:
# - main
on:
pull_request:
push:
branches:
- OP-1123-GHA-bump-deprecated-gha
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