Skip to content

Commit

Permalink
Attempt to fix issues with Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rootpd committed Jan 5, 2024
1 parent 579f25a commit 325a242
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
sniff_81:
runs-on: ubuntu-latest
steps:
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- uses: actions/checkout@v4
- name: Cache Composer dependencies
uses: actions/cache@v3
Expand All @@ -19,6 +23,7 @@ jobs:
- uses: php-actions/composer@v6
with:
php_version: 8.1

- name: Run sniffer
run: composer cs
- name: Run tests
Expand All @@ -27,6 +32,10 @@ jobs:
sniff_82:
runs-on: ubuntu-latest
steps:
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- uses: actions/checkout@v4
- name: Cache Composer dependencies
uses: actions/cache@v3
Expand All @@ -44,6 +53,10 @@ jobs:
sniff_83:
runs-on: ubuntu-latest
steps:
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- uses: actions/checkout@v4
- name: Cache Composer dependencies
uses: actions/cache@v3
Expand Down
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,25 @@ after_failure:

jobs:
include:
- env: title="Lowest Dependencies 8.0"
php: 8.0
- env: title="Lowest Dependencies 8.1"
php: 8.1
install:
- travis_retry composer update --no-interaction --no-progress --prefer-dist --prefer-lowest
script:
- composer test

- stage: cs
php: 8.0
php: 8.1
script:
- composer cs

- stage: cs
php: 8.1
php: 8.2
script:
- composer cs

- stage: cs
php: 8.3
script:
- composer cs

Expand Down

0 comments on commit 325a242

Please sign in to comment.