Skip to content

Commit

Permalink
Update PHPUnit to v11 and run in GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Nov 24, 2024
1 parent 139cb75 commit 0868be4
Show file tree
Hide file tree
Showing 46 changed files with 1,213 additions and 567 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build-and-test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -46,6 +46,11 @@ jobs:
CI_COMMIT_SHORT_SHA=$(echo $CI_COMMIT_SHA | head -c8)
./bin/platform self:build --no-composer-rebuild --yes --replace-version "$CI_COMMIT_REF_NAME"-"$CI_COMMIT_SHORT_SHA" --output platform.phar
- name: Run PHPUnit tests
run: |
composer install --no-interaction --no-scripts
./scripts/test/unit.sh
- name: Clone main CLI repository
run: git clone https://github.com/platformsh/cli.git ./cli

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.idea/
/release-changelog*.md
/local-php-security-checker
/.phpunit.result.cache
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "^4.3 !=4.8.0",
"phpunit/phpunit": "^11",
"drush/drush": "^8.0"
},
"authors": [
Expand Down
Loading

0 comments on commit 0868be4

Please sign in to comment.