Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheise committed Jul 29, 2024
1 parent c36b177 commit 4b49383
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:

permissions: {}

jobs:
ci:
name: CI
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
permissions:
pull-requests: read
contents: write
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@
"mhe/imagetools": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.7"
},
"autoload": {
"psr-4": {
"Mhe\\SmartImages\\": "src/",
"Mhe\\SmartImages\\Tests\\": "tests/"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
3 changes: 2 additions & 1 deletion tests/Extensions/ImageExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

namespace Mhe\SmartImages\Tests\Extensions;

use DOMDocument, DOMXPath;
use DOMDocument;
use DOMXPath;
use Mhe\SmartImages\Extensions\ImageExtension;
use Page;
use SilverStripe\Assets\Dev\TestAssetStore;
Expand Down

0 comments on commit 4b49383

Please sign in to comment.