Skip to content

Commit

Permalink
Update github actions ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Dec 15, 2022
1 parent e0d4746 commit cf18807
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 22 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/active-record.yml
Expand Up @@ -27,7 +27,6 @@ jobs:

env:
COMPOSER_ROOT_VERSION: dev-master
composer_flag: "${{ matrix.php == '8.2' && '--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi --ignore-platform-reqs' || '--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi' }}"
extensions: pdo, pdo_mysql, pdo_oci, pdo_pgsql, pdo_sqlite, pdo_sqlsrv-5.10.1

runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -95,28 +94,14 @@ jobs:
- name: Update composer
run: composer self-update

- name: Install db-mssql
run: composer require yiisoft/db-mssql ${{ env.composer_flag }}

- name: Install db-mysql
run: composer require yiisoft/db-mysql ${{ env.composer_flag }}

- name: Install db-pgsql
run: composer require yiisoft/db-pgsql ${{ env.composer_flag }}

- name: Install db-oracle
run: composer require yiisoft/db-oracle ${{ env.composer_flag }}

- name: Install db-sqlite
run: composer require yiisoft/db-sqlite ${{ env.composer_flag }}

- name: Install active-record
run: composer require yiisoft/active-record ${{ env.composer_flag }}
run: composer require yiisoft/active-record:${{ env.COMPOSER_ROOT_VERSION }} --no-interaction --no-progress --optimize-autoloader --ansi

- name: Run tests with phpunit with code coverage
run: vendor/bin/phpunit --testsuite ActiveRecord --coverage-clover=coverage.xml --colors=always

- name: Upload coverage to Codecov
if: matrix.php-version == '8.1'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/db-mssql.yml
Expand Up @@ -85,7 +85,7 @@ jobs:
run: vendor/bin/phpunit --testsuite Mssql --coverage-clover=coverage.xml --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '8.0'
if: matrix.php == '8.1'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/db-mysql.yml
Expand Up @@ -78,7 +78,7 @@ jobs:
run: vendor/bin/phpunit --testsuite Mysql --coverage-clover=coverage.xml --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '8.0'
if: matrix.php == '8.1'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/db-oracle.yml
Expand Up @@ -74,7 +74,7 @@ jobs:
run: vendor/bin/phpunit --testsuite Oracle --coverage-clover=coverage.xml --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '8.0'
if: matrix.php == '8.1'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/db-pgsql.yml
Expand Up @@ -82,7 +82,7 @@ jobs:
run: vendor/bin/phpunit --testsuite Pgsql --coverage-clover=coverage.xml --colors=always

- name: Upload coverage to Codecov.
if: matrix.php == '8.0'
if: matrix.php == '8.1'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/db-sqlite.yml
Expand Up @@ -65,7 +65,7 @@ jobs:
run: vendor/bin/phpunit --testsuite Sqlite --coverage-clover=coverage.xml --colors=always

- name: Upload coverage to Codecov.
if: matrix.os == 'ubuntu-latest' && matrix.php == '8.0'
if: matrix.os == 'ubuntu-latest' && matrix.php == '8.1'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit cf18807

Please sign in to comment.