From b0561c70e58616014fff3c6eab06ab164aa5a7ba Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Mon, 26 Jul 2021 15:32:36 -0400 Subject: [PATCH] [minor] add test-phar ci job --- .github/workflows/ci.yml | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 40f74c2..8c8768b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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