Skip to content

Commit

Permalink
Cleanup continuous integration configuration (#223)
Browse files Browse the repository at this point in the history
- lock OS version to specific version (ubuntu-20.04)
- use matrix build to test against different PHP versions (8.0 and 7.4)
- update infection/infection to latest version
  • Loading branch information
markuspoerschke committed Mar 16, 2021
1 parent 0a698c6 commit 9bcaa88
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 42 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
fix-code-style:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
Expand All @@ -28,15 +28,20 @@ jobs:
commit_message: Fix code style!

test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
php-version:
- "7.4"
- "8.0"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP with extensions"
uses: "shivammathur/setup-php@v2"
with:
php-version: "7.4"
php-version: ${{ matrix.php-version }}

- name: "Determine composer cache directory"
id: "determine-composer-cache-directory"
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/ci_php8.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/reviewdog.yml
Expand Up @@ -5,7 +5,7 @@ on: [pull_request]
jobs:
spellchecker:
name: Spell check
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: reviewdog/action-languagetool@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/website.yml
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Turnstyle
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -27,7 +27,7 @@
"require-dev": {
"ergebnis/composer-normalize": "^2.8",
"friendsofphp/php-cs-fixer": "^2.16",
"infection/infection": "^0.17.5",
"infection/infection": "^0.20.1",
"phpmd/phpmd": "~2.8.0",
"phpunit/phpunit": "^9",
"vimeo/psalm": "^4.4.1"
Expand Down

0 comments on commit 9bcaa88

Please sign in to comment.