Use own store of codecept.phar for github actions

This commit is contained in:
Kijin Sung 2023-10-26 20:36:51 +09:00
parent 6416499d34
commit 2d443a600e

View file

@ -7,18 +7,18 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ] php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
name: PHP ${{ matrix.php }} name: PHP ${{ matrix.php }}
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Setup PHP - name: Setup PHP
uses: nanasess/setup-php@master uses: nanasess/setup-php@master
with: with:
php-version: ${{ matrix.php }} php-version: ${{ matrix.php }}
- name: Start MySQL and create database - name: Start MySQL and create database
run: | run: |
sudo systemctl start mysql.service sudo systemctl start mysql.service
@ -29,13 +29,13 @@ jobs:
- name: PHP Lint - name: PHP Lint
run: if find . -name "*.php" ! -path "./common/vendor/*" -print0 | xargs -0 -n 1 -P 8 php -l | grep -v "No syntax errors detected"; then exit 1; fi run: if find . -name "*.php" ! -path "./common/vendor/*" -print0 | xargs -0 -n 1 -P 8 php -l | grep -v "No syntax errors detected"; then exit 1; fi
- name: Download codeception - name: Download codeception
run: wget https://codeception.com/codecept.phar run: wget https://res.rhymix.org/ci/php${{ matrix.php }}/codecept.phar
- name: Run PHP development server - name: Run PHP development server
run: php -S localhost:8000 & run: php -S localhost:8000 &
- name: Build and run codeception - name: Build and run codeception
run: | run: |
php codecept.phar build php codecept.phar build