Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Profile with v6 addresses too #852

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading