From 091351257f5032350583329eba631e3044f0f3d5 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 20 Feb 2024 11:54:54 +0100 Subject: [PATCH] ci: Profile with v6 addresses too Signed-off-by: Christoph Wurst --- .github/workflows/profile.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/profile.yml b/.github/workflows/profile.yml index dd9cf264..43a2987d 100644 --- a/.github/workflows/profile.yml +++ b/.github/workflows/profile.yml @@ -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 @@ -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