Skip to content

Commit

Permalink
:octocat: CI update
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Feb 18, 2024
1 parent 2946bd5 commit dfe940e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: pecl
coverage: none
extensions: ast, curl, fileinfo, json, simplexml, sodium, zlib
extensions: ast, curl, fileinfo, json, mbstring, simplexml, sodium, zlib

- name: "Update dependencies with composer"
uses: ramsey/composer-install@v2
Expand All @@ -56,15 +56,15 @@ jobs:

steps:
- name: "Checkout sources"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
tools: phpDocumentor
coverage: none
extensions: curl, fileinfo, json, simplexml, sodium, zlib
extensions: curl, fileinfo, json, mbstring, simplexml, sodium, zlib

- name: "Build Docs"
run: phpdoc --config=phpdoc.xml.dist
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:

steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: "Fetch cacert.pem from curl.haxx.se"
run: curl -o tests/cacert.pem https://curl.haxx.se/ca/cacert.pem
Expand All @@ -105,7 +105,7 @@ jobs:
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
extensions: curl, fileinfo, json, simplexml, sodium, zlib
extensions: curl, fileinfo, json, mbstring, simplexml, sodium, zlib

- name: "Install dependencies with composer"
uses: ramsey/composer-install@v2
Expand All @@ -114,10 +114,12 @@ jobs:
run: php vendor/phpunit/phpunit/phpunit --configuration=phpunit.xml.dist

- name: "Send code coverage report to Codecov.io"
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: .build/coverage/clover.xml

- name: "Send code coverage report to Codacy"
if: runner.os != 'Windows' # see https://github.com/codacy/codacy-coverage-reporter-action/issues/72
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
Expand Down

0 comments on commit dfe940e

Please sign in to comment.