Skip to content

Commit

Permalink
chore(ci): update
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Dec 16, 2022
1 parent 74bc3e9 commit 6dbdd8d
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: 7.4
php-version: 8.0
coverage: none

- name: Install dependencies
Expand All @@ -45,11 +45,6 @@ jobs:
composer-validate:
uses: zenstruck/.github/.github/workflows/php-composer-validate.yml@main

cs-check:
uses: zenstruck/.github/.github/workflows/php-cs-fixer.yml@main
with:
php: 8.0

sca:
uses: zenstruck/.github/.github/workflows/php-stan.yml@main
with:
Expand Down Expand Up @@ -77,7 +72,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: 7.4
php-version: 8.0
coverage: none
tools: symfony

Expand All @@ -104,7 +99,6 @@ jobs:
runs-on: ubuntu-latest
name: Publish PHAR
needs:
- cs-check
- composer-validate
- test-phar
- sca
Expand All @@ -116,11 +110,32 @@ jobs:
path: .

- name: Upload phpmyadmin.phar
uses: actions/upload-release-asset@v1
uses: shogo82148/actions-upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: phpmyadmin.phar
asset_name: phpmyadmin.phar
asset_content_type: application/zip

fixcs:
name: Run php-cs-fixer
needs: sync-with-template
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
runs-on: ubuntu-latest
steps:
- uses: zenstruck/.github@php-cs-fixer
with:
php: 8
key: ${{ secrets.GPG_PRIVATE_KEY }}

sync-with-template:
name: Sync meta files
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
runs-on: ubuntu-latest
steps:
- uses: zenstruck/.github@sync-with-template
with:
key: ${{ secrets.GPG_PRIVATE_KEY }}
codecov: false

0 comments on commit 6dbdd8d

Please sign in to comment.