Skip to content

Commit

Permalink
ci: upgrade deps and use PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Dec 9, 2023
1 parent 8d683f2 commit 6989eb8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
-
package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
commit-message:
prefix: ci
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ jobs:
- '8.0'
- '8.1'
- '8.2'
- '8.3'
include:
- php: '8.2'
- php: '8.3'
latest: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -45,7 +46,7 @@ jobs:

- name: Install prerequisites
run: |
wget -O box.phar https://github.com/humbug/box/releases/download/4.3.8/box.phar
wget -O box.phar https://github.com/humbug/box/releases/download/4.5.1/box.phar
echo "BOX_BIN=$(pwd)/box.phar" >> $GITHUB_ENV
sudo chown -R $(whoami):$(whoami) .
Expand All @@ -54,7 +55,7 @@ jobs:
run: composer install --prefer-dist --no-interaction --no-progress --ansi

- name: Update dependencies
if: "!matrix.latest"
if: '!matrix.latest'
run: composer update --no-interaction --no-progress --ansi

- name: Enable code coverage
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@ jobs:
build:
name: Create Release and Upload Release Asset
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.step_upload_url.outputs.upload_url }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.3'
extensions: json
ini-values: memory_limit=-1
tools: composer
Expand All @@ -27,7 +25,7 @@ jobs:
run: composer install --prefer-dist --no-interaction --no-progress --ansi

- name: Download box.phar
run: wget -O box.phar https://github.com/humbug/box/releases/download/4.2.0/box.phar
run: wget -O box.phar https://github.com/humbug/box/releases/download/4.5.1/box.phar

- name: Compile project
run: php ./box.phar compile
Expand Down

0 comments on commit 6989eb8

Please sign in to comment.