Skip to content

Commit

Permalink
retry on the phpunit error for ci
Browse files Browse the repository at this point in the history
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
  • Loading branch information
nabim777 committed Aug 28, 2024
1 parent 03cb1b5 commit e131f77
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/shared_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Style Lint
run: npm run stylelint

- name: PHP & Vue Unit Tests
- name: PHP Unit Tests
run: |
git clone --depth 1 https://github.com/nextcloud/groupfolders.git -b ${{ matrix.nextcloudVersion }} server/apps/groupfolders
mkdir -p server/apps/integration_openproject
Expand All @@ -110,12 +110,22 @@ jobs:
./occ a:e groupfolders
./occ a:e integration_openproject
cd apps/integration_openproject
# The following if block can be removed once Nextcloud no longer supports PHP 8.0
if [ "${{matrix.phpVersion}}" -eq 8 ]; then
make phpunitforphp8.0
else
make phpunit
fi
- name: Re Run PHPUnit Tests
uses: nick-fields/retry@v3
with:
max_attempts: 2
command: |
echo "Starting PHPUnit tests. Attempt ${{ steps.retry.outputs.attempt_number }}"
if [ "${{ matrix.phpVersion }}" -eq 8 ]; then
make phpunitforphp8.0
else
make phpunit
fi
- name: Vue Unit Tests
run: |
cd apps/integration_openproject
make jsunit
- name: JS Code Coverage Summary Report
Expand Down

0 comments on commit e131f77

Please sign in to comment.