Skip to content

Commit e356023

Browse files
committed
update github actions
1 parent 8e6d69f commit e356023

File tree

2 files changed

+22
-68
lines changed

2 files changed

+22
-68
lines changed

.github/workflows/ci_higher_than_or_equal_to_7.2.yml renamed to .github/workflows/ci.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,17 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1']
15+
php-versions: [
16+
'5.6', '7.0', '7.1',
17+
'7.2', '7.3', '7.4', '8.0', '8.1'
18+
]
1619

1720
steps:
1821
- name: Checkout
19-
uses: actions/checkout@v2
20-
21-
- uses: actions/setup-node@v1
22-
with:
23-
node-version: 10.x
22+
uses: actions/checkout@v4
2423

2524
- name: Install Proxy
26-
run: npm install o_o -g --registry=https://registry.npm.taobao.org
25+
run: npm install o_o -g
2726

2827
- name: Start Proxy
2928
run: o_o &
@@ -34,7 +33,7 @@ jobs:
3433
php-version: ${{ matrix.php-versions }}
3534
extensions: mbstring, intl
3635
ini-values: post_max_size=256M, max_execution_time=180
37-
coverage: xdebug
36+
coverage: xdebug
3837
tools: php-cs-fixer, phpunit
3938

4039
- name: Validate composer.json and composer.lock
@@ -45,6 +44,7 @@ jobs:
4544

4645
- name: Run test case
4746
run: composer test4HighVersion
47+
if: ${{ contains(fromJSON('["7.2", "7.3", "7.4", "8.0", "8.1"]'), matrix.php-versions) }}
4848
env:
4949
REGION_ID: ${{ secrets.REGION_ID }}
5050
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
@@ -54,6 +54,19 @@ jobs:
5454
IMAGE_SEARCH_ACCESS_KEY_ID: ${{ secrets.IMAGE_SEARCH_ACCESS_KEY_ID }}
5555
IMAGE_SEARCH_ACCESS_KEY_SECRET: ${{ secrets.IMAGE_SEARCH_ACCESS_KEY_SECRET }}
5656
IMAGE_SEARCH_INSTANCE_NAME: ${{ secrets.IMAGE_SEARCH_INSTANCE_NAME }}
57-
57+
58+
- name: Run test case
59+
run: composer test4LowVersion
60+
if: ${{ contains(fromJSON('["5.6", "7.0", "7.1"]'), matrix.php-versions) }}
61+
env:
62+
REGION_ID: ${{ secrets.REGION_ID }}
63+
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
64+
ACCESS_KEY_SECRET: ${{ secrets.ACCESS_KEY_SECRET }}
65+
PRIVATE_KEY_LINE_1: ${{ secrets.PRIVATE_KEY_LINE_1 }}
66+
PUBLIC_KEY_ID: ${{ secrets.PUBLIC_KEY_ID }}
67+
IMAGE_SEARCH_ACCESS_KEY_ID: ${{ secrets.IMAGE_SEARCH_ACCESS_KEY_ID }}
68+
IMAGE_SEARCH_ACCESS_KEY_SECRET: ${{ secrets.IMAGE_SEARCH_ACCESS_KEY_SECRET }}
69+
IMAGE_SEARCH_INSTANCE_NAME: ${{ secrets.IMAGE_SEARCH_INSTANCE_NAME }}
70+
5871
- name: CodeCov
5972
run: bash <(curl -s https://codecov.io/bash)

.github/workflows/ci_lower_than_php7.2.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)