Skip to content

Commit 031107d

Browse files
authored
Update ci.yml
1 parent 5023c3e commit 031107d

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

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

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
2-
name: CI
3-
41
on:
52
push:
63
branches:
@@ -9,8 +6,6 @@ on:
96
branches:
107
- master
118

12-
workflow_dispatch:
13-
149
defaults:
1510
run:
1611
shell: bash
@@ -34,10 +29,10 @@ jobs:
3429
timeout-minutes: 10
3530
steps:
3631
- name: Checkout code
37-
uses: actions/checkout@v2
32+
uses: actions/checkout@v3
3833

3934
- name: Setup PHP
40-
uses: shivammathur/setup-php@2.9.0
35+
uses: shivammathur/setup-php@2.16.0
4136
with:
4237
php-version: ${{ matrix.php }}
4338
coverage: xdebug
@@ -49,7 +44,7 @@ jobs:
4944
run: echo "::set-output name=directory::$(composer config cache-dir)"
5045

5146
- name: Cache composer dependencies
52-
uses: actions/cache@v2.1.3
47+
uses: actions/cache@v2.1.7
5348
with:
5449
path: ${{ steps.composer-cache.outputs.directory }}
5550
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
@@ -84,13 +79,13 @@ jobs:
8479
8580
- name: Upload coverage results to Coveralls
8681
env:
87-
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8883
run: |
89-
composer global require php-coveralls/php-coveralls
90-
php-coveralls --coverage_clover=build/logs/clover.xml -v
84+
composer global require php-coveralls/php-coveralls
85+
php-coveralls --coverage_clover=build/logs/clover.xml -v
9186
9287
- name: Upload coverage results to Codecov
93-
uses: codecov/codecov-action@v1
88+
uses: codecov/codecov-action@v2
9489
with:
9590
files: build/logs/clover.xml
9691

@@ -101,8 +96,8 @@ jobs:
10196

10297
- name: Archive logs artifacts
10398
if: ${{ failure() }}
104-
uses: actions/upload-artifact@v2
99+
uses: actions/upload-artifact@v3
105100
with:
106101
name: logs_composer-${{ matrix.composer }}_php-${{ matrix.php }}
107102
path: |
108-
build/logs
103+
build/logs

0 commit comments

Comments
 (0)