Skip to content

Commit cfdc244

Browse files
committed
fix7
1 parent 53e08c0 commit cfdc244

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,12 @@ jobs:
7070
id: composercache
7171
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_ENV
7272

73-
- name: Cache dependencies
74-
uses: actions/cache@v4
75-
with:
76-
path: ${{ env.dir }}
77-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
78-
restore-keys: ${{ runner.os }}-composer-
73+
- name: Install Composer dependencies (Winter CMS)
74+
run: composer install --no-interaction --no-progress --no-suggest --prefer-dist
7975

80-
- name: Install Composer dependencies
76+
- name: Install Composer dependencies (Plugin)
8177
run: composer install --no-interaction --no-progress --no-suggest --prefer-dist
78+
working-directory: plugins/numencode/dropboxadapter
8279

8380
- name: Run unit tests
8481
run: php artisan winter:test -p NumenCode.DropboxAdapter --configuration=plugins/numencode/dropboxadapter/phpunit.xml

composer.json

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "numencode/wn-widgets-plugin",
3-
"description": "NumenCode Widgets plugin for Winter CMS",
2+
"name": "numencode/wn-dropboxadapter-plugin",
3+
"description": "NumenCode Dropbox Adapter plugin for Winter CMS",
44
"type": "winter-plugin",
55
"homepage": "https://www.numencode.com",
6-
"keywords": ["winter cms", "winter", "plugin", "laravel", "numencode"],
6+
"keywords": ["winter cms", "winter", "plugin", "laravel", "numencode", "dropbox", "storage"],
77
"license": "MIT",
88
"support": {
99
"issues": "https://github.com/numencode/wn-dropboxadapter-plugin/issues",
@@ -18,9 +18,25 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^8.0.2"
21+
"php": "^8.0.2",
22+
"winter/storm": "^1.2.7",
23+
"spatie/flysystem-dropbox": "^3.0",
24+
"composer/installers": "~1.0"
25+
},
26+
"autoload": {
27+
"psr-4": {
28+
"NumenCode\\DropboxAdapter\\": ""
29+
}
30+
},
31+
"config": {
32+
"allow-plugins": {
33+
"composer/installers": true
34+
}
2235
},
2336
"extra": {
24-
"installer-name": "dropboxadapter"
25-
}
37+
"installer-name": "dropboxadapter",
38+
"installer-type": "winter-plugin"
39+
},
40+
"minimum-stability": "stable",
41+
"prefer-stable": true
2642
}

0 commit comments

Comments
 (0)