Skip to content

Commit

Permalink
gh a up
Browse files Browse the repository at this point in the history
  • Loading branch information
dakujem committed Jul 17, 2024
1 parent cd37f47 commit 2df2648
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/php-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ jobs:
- php: '8.2'
- php: '8.3'
- php: '8.4'
# continue-on-error: ${{ matrix.php > '8.3' }}
allow_failure: true
extra_require: 'nette/tester:dev-master'

# Steps represent a sequence of tasks that will be executed as part of the job
name: "PHP${{ matrix.php }} ${{ matrix.composer-flags }}"
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@v2
Expand All @@ -43,24 +44,33 @@ jobs:

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-php-

- name: Override packages
if: ${{ matrix.extra_require }}
run: composer require --dev ${{ matrix.extra_require }}
continue-on-error: ${{ matrix.allow_failure }}

- name: Update composer dependencies
run: composer update -o --no-interaction --no-progress --prefer-dist ${{ matrix.composer-flags }}
continue-on-error: ${{ matrix.allow_failure }}

- name: Run TEST suite
run: composer run-script test:ci -- -C --coverage tests/output/coverage.xml --coverage-src=src
continue-on-error: ${{ matrix.allow_failure }}
#run: vendor/bin/tester tests -C --coverage tests/output/coverage.xml --coverage-src=src

- name: Install php-coveralls
if: ${{ !matrix.allow_failure }}
run: composer global require -o --no-interaction --no-progress --prefer-dist php-coveralls/php-coveralls

- name: Upload coverage results to Coveralls
uses: nick-invision/retry@v2
if: ${{ !matrix.allow_failure }}
uses: nick-invision/retry@v3
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_PARALLEL: true
Expand All @@ -75,7 +85,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Notify Coveralls when build is finished
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@v2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

0 comments on commit 2df2648

Please sign in to comment.