Skip to content

Commit

Permalink
[minor] add test-phar ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Jul 26, 2021
1 parent 0e7a1df commit b0561c7
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,39 @@ jobs:
- name: Check CS
run: php-cs-fixer fix --dry-run --diff

test-phar:
runs-on: ubuntu-latest
name: Test PHAR
needs:
- build-phar
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: 1234
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/download-artifact@v1
with:
name: phpmyadmin.phar
path: .
- run: |
mv phpmyadmin.phar phpmyadmin
chmod +x phpmyadmin
./phpmyadmin init --no-interaction --password=1234
./phpmyadmin
sleep 2
curl -I http://127.0.0.1:8888
publish-phar:
runs-on: ubuntu-latest
name: Publish PHAR
needs:
- cs-check
- composer-validate
- build-phar
- cs-check
- composer-validate
- test-phar
if: github.event_name == 'release'
steps:
- uses: actions/download-artifact@v1
Expand Down

0 comments on commit b0561c7

Please sign in to comment.