Skip to content

Commit a100629

Browse files
authored
PHPSDK-177: Improvements on GitHub actions (#382)
1 parent 4c46227 commit a100629

File tree

4 files changed

+10
-52
lines changed

4 files changed

+10
-52
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,7 @@ jobs:
5050
sed -i "s/'API_KEY' => ''/'API_KEY' => '${{ secrets.API_KEY }}'/g" .env.php
5151
sed -i "s/'PARTNER_ACCOUNT_ID' => ''/'PARTNER_ACCOUNT_ID' => '1001001'/g" .env.php
5252
- name: Run PHPUnit tests
53-
run: vendor/bin/phpunit
53+
run: vendor/bin/phpunit --coverage-clover=coverage.xml
54+
- if: matrix.php-version == '8.3'
55+
name: Send clover to codecov
56+
run: test -z "${{ secrets.CODECOV_TOKEN }}" || (bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }} -f "*.php" -Z -R .)

.github/workflows/code_sniffer.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Code sniffer
22
on:
3+
push:
4+
branches:
5+
- master
36
pull_request:
47
branches:
58
- master

.github/workflows/cron_build.yml

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

.github/workflows/static_analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Static Analysis
22
on:
3+
push:
4+
branches:
5+
- master
36
pull_request:
47
branches:
58
- master

0 commit comments

Comments
 (0)