初始化仓库
This commit is contained in:
37
vendor/qcloud/cos-sdk-v5/.github/workflows/format.yml
vendored
Normal file
37
vendor/qcloud/cos-sdk-v5/.github/workflows/format.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
name: format
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
format:
|
||||
name: Format Code
|
||||
runs-on: "${{ matrix.os }}"
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
php-version: ['8.0']
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-version }}
|
||||
coverage: none
|
||||
|
||||
- name: Setup Dependencies
|
||||
run:
|
||||
composer install -o
|
||||
|
||||
- name: Run
|
||||
run: |
|
||||
php bin/format
|
||||
php bin/release
|
||||
|
||||
- name: Commit Updated
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: Format code
|
||||
29
vendor/qcloud/cos-sdk-v5/.github/workflows/install.yml
vendored
Normal file
29
vendor/qcloud/cos-sdk-v5/.github/workflows/install.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Support Multiple Versions
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
install:
|
||||
name: PHP${{ matrix.php-version }} Test Install
|
||||
runs-on: "${{ matrix.os }}"
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
|
||||
max-parallel: 10
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-version }}
|
||||
coverage: none
|
||||
|
||||
- name: Setup Dependencies
|
||||
run:
|
||||
composer install -o
|
||||
Reference in New Issue
Block a user