Skip to content

Commit

Permalink
ci: Profile with v6 addresses too
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Feb 20, 2024
1 parent 6ce71ec commit 0913512
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ name: Profile
on: pull_request

jobs:
unit-tests:
profile:
runs-on: ubuntu-latest
strategy:
matrix:
flag: ['', '--v6']
php-version: [ '8.0', '8.1' ]
nextcloud-version: [ 'master' ]
name: php${{ matrix.php-version }} profiling
name: php${{ matrix.php-version }} ${{ matrix.flag }} profiling
services:
mysql-service:
image: mariadb:10.5
Expand Down Expand Up @@ -47,7 +48,17 @@ jobs:
- name: Seed the database
run: |
php -f nextcloud/occ config:system:set debug --type bool --value true
php -f nextcloud/occ suspiciouslogin:seed
php -f nextcloud/occ suspiciouslogin:seed ${{ matrix.flag }}
php -f nextcloud/occ config:system:set debug --type bool --value false
- name: Profile a training
run: time php -f nextcloud/occ suspiciouslogin:train -v
run: time php -f nextcloud/occ suspiciouslogin:train -v ${{ matrix.flag }}
summary:
permissions:
contents: none
runs-on: ubuntu-latest
needs: [ profile ]
if: always()
name: profile-summary
steps:
- name: Summary status
run: if ${{ needs.profile.result != 'false' && needs.profile.result != 'success' }}; then exit 1; fi

0 comments on commit 0913512

Please sign in to comment.