update github actions #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: LowVersion CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['5.6', '7.0', '7.1'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Proxy | |
run: npm install o_o -g | |
- name: Start Proxy | |
run: o_o & | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring, intl | |
ini-values: post_max_size=256M, max_execution_time=180 | |
coverage: xdebug | |
tools: php-cs-fixer, phpunit | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Run test case | |
run: composer test4LowVersion | |
env: | |
REGION_ID: ${{ secrets.REGION_ID }} | |
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }} | |
ACCESS_KEY_SECRET: ${{ secrets.ACCESS_KEY_SECRET }} | |
PRIVATE_KEY_LINE_1: ${{ secrets.PRIVATE_KEY_LINE_1 }} | |
PUBLIC_KEY_ID: ${{ secrets.PUBLIC_KEY_ID }} | |
IMAGE_SEARCH_ACCESS_KEY_ID: ${{ secrets.IMAGE_SEARCH_ACCESS_KEY_ID }} | |
IMAGE_SEARCH_ACCESS_KEY_SECRET: ${{ secrets.IMAGE_SEARCH_ACCESS_KEY_SECRET }} | |
IMAGE_SEARCH_INSTANCE_NAME: ${{ secrets.IMAGE_SEARCH_INSTANCE_NAME }} | |
- name: CodeCov | |
run: bash <(curl -s https://codecov.io/bash) |