Skip to content

Commit

Permalink
Update GHA workflows to use current Ubuntu and tools versions (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Jan 18, 2024
1 parent d91e8b5 commit dcae8af
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:
pull_request:

env:
PHP_VERSION: 7.4
PHP_VERSION: 8.1

jobs:
composer-require-checker:
name: Check missing composer requirements
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Configure PHP version
uses: shivammathur/setup-php@v2
Expand All @@ -32,4 +32,4 @@ jobs:
composer update --no-interaction --no-scripts --no-progress
composer show
- name: ComposerRequireChecker
uses: docker://webfactory/composer-require-checker:3.2.0
uses: docker://ghcr.io/webfactory/composer-require-checker:4.8.0
4 changes: 2 additions & 2 deletions .github/workflows/fix-cs-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: Coding Standards
jobs:
open-pr-for-cs-violations:
name: PHP-CS-Fixer
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: github.actor != 'dependabot[bot]'
steps:
- name: Checkout code
Expand All @@ -18,7 +18,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Run PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga:3.11.0
uses: docker://oskarstark/php-cs-fixer-ga:3.26.0

- name: Commit and push back changes
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-version-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
compat-check:
name: Check dependency compatibility
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Build .phar on release

jobs:
build_phar:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Configure PHP version
uses: shivammathur/setup-php@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
PHPUnit:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 0 additions & 3 deletions src/Webfactory/Slimdump/Config/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ public function getSelector()
return $this->selector;
}

/**
* @return mixed
*/
public function getDump()
{
return $this->dump;
Expand Down
2 changes: 0 additions & 2 deletions src/Webfactory/Slimdump/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ public function findTable($tableName)

/**
* @param string $needle
*
* @return mixed
*/
public static function findBySelector(array $haystack, $needle)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Webfactory/Slimdump/Config/FakerReplacer.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct()
*/
public static function isFakerColumn($replacement)
{
return 0 === strpos($replacement, self::PREFIX);
return str_starts_with($replacement, self::PREFIX);
}

/**
Expand All @@ -53,7 +53,7 @@ public function generateReplacement($replacementId)
{
$replacementMethodName = str_replace(self::PREFIX, '', $replacementId);

if (false !== strpos($replacementMethodName, '->')) {
if (str_contains($replacementMethodName, '->')) {
[$modifierName, $replacementMethodName] = explode('->', $replacementMethodName);

$this->validateReplacementConfiguredModifier($modifierName, $replacementMethodName);
Expand Down
2 changes: 1 addition & 1 deletion src/Webfactory/Slimdump/Database/CsvOutputFormatDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CsvOutputFormatDriver implements OutputFormatDriverInterface
/**
* @var ?resource
*/
private $outputFile = null;
private $outputFile;

/**
* @var bool
Expand Down
1 change: 0 additions & 1 deletion test/Webfactory/Slimdump/Config/TableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ public function testDumpTriggerDefaultSetting()
* @dataProvider dumpTriggerAttributeValues
*
* @param string $value
* @param $expected
*
* @throws mixed InvalidDumpTypeException
*/
Expand Down

0 comments on commit dcae8af

Please sign in to comment.