Skip to content

Commit

Permalink
Support Statamic 5 (#1)
Browse files Browse the repository at this point in the history
* Support Statamic 5

* Update PHP version for code styling

* Apply formatting changes

---------

Co-authored-by: aaronbushnell <[email protected]>
  • Loading branch information
aaronbushnell and aaronbushnell authored May 7, 2024
1 parent 94ea7d8 commit 5b36e88
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ jobs:
with:
ref: ${{ github.head_ref }}

- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2

- name: Install Composer dependencies
run: composer install
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Run Pint
run: ./vendor/bin/pint
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
vendor
mix-manifest.json
.DS_Store
.idea
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
]
}
},
"version": "1.0.8",
"version": "1.1.0",
"require": {
"php": "^8.1",
"statamic/cms": "^4.0"
"php": "^8.2",
"statamic/cms": "^4.0|^5.0"
},
"require-dev": {
"laravel/pint": "^1.15"
Expand Down
18 changes: 9 additions & 9 deletions src/Commands/OrbitSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ public function handle()
? $addon->latestVersion()
: null,
])->sortBy('name')
->prepend([
'name' => 'Statamic',
'package' => 'statamic/cms',
'version' => Statamic::version(),
'latest_version' => Marketplace::statamic()->changelog()->availableUpdatesCount() > 0
? Marketplace::statamic()->changelog()->latest()->version
: null,
])
->values()->toArray(),
->prepend([
'name' => 'Statamic',
'package' => 'statamic/cms',
'version' => Statamic::version(),
'latest_version' => Marketplace::statamic()->changelog()->availableUpdatesCount() > 0
? Marketplace::statamic()->changelog()->latest()->version
: null,
])
->values()->toArray(),
];

try {
Expand Down

0 comments on commit 5b36e88

Please sign in to comment.