Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Jun 9, 2022
1 parent 5023c3e commit 031107d
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/ci.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@

name: CI

on:
push:
branches:
Expand All @@ -9,8 +6,6 @@ on:
branches:
- master

workflow_dispatch:

defaults:
run:
shell: bash
Expand All @@ -34,10 +29,10 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

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

- name: Cache composer dependencies
uses: actions/cache@v2.1.3
uses: actions/cache@v2.1.7
with:
path: ${{ steps.composer-cache.outputs.directory }}
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -84,13 +79,13 @@ jobs:
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=build/logs/clover.xml -v
- name: Upload coverage results to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
files: build/logs/clover.xml

Expand All @@ -101,8 +96,8 @@ jobs:

- name: Archive logs artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: logs_composer-${{ matrix.composer }}_php-${{ matrix.php }}
path: |
build/logs
build/logs

0 comments on commit 031107d

Please sign in to comment.