Skip to content

Commit

Permalink
Merge branch 'QA_5_2'
Browse files Browse the repository at this point in the history
Also merges pull-request: #17591
Pull-request: #17591

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Jun 11, 2022
3 parents a176b85 + 995f688 + 4418fd3 commit 57a5df9
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/daily-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
schedule:
- cron: '0 0 * * *'

permissions:
contents: read

jobs:
generate-snapshots:
name: Generate ${{ matrix.version }} snapshots
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint-and-analyse-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- master
- QA_**

permissions:
contents: read

jobs:
lint-node:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- master
- QA_**

permissions:
contents: read

jobs:
lint-docs:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ on:
schedule:
- cron: '0 0 * * *'

permissions:
contents: read

jobs:
lock:
permissions:
issues: write # for dessant/lock-threads to lock issues
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [master]

permissions:
contents: read

jobs:
tests:
name: Mutation tests with PHP ${{ matrix.php-version }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/other-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- master
- QA_**

permissions:
contents: read

jobs:
build-documentation:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-selenium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- master
- QA_**

permissions:
contents: read

env:
php-version: "8.1"

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- master
- QA_**

permissions:
contents: read

jobs:
multi-arch-tests-php:
name: Test on PHP ${{ matrix.php-version }} (${{ matrix.arch }})
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/update-po.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ on:
schedule:
- cron: '0 0 * * 0'

permissions:
contents: read

jobs:
update-po:
permissions:
contents: write # for Git to git push
name: Update po files
runs-on: ubuntu-latest
# Source: https://github.community/t/do-not-run-cron-workflows-in-forks/17636/2?u=williamdes
Expand Down
4 changes: 4 additions & 0 deletions test/classes/Utils/SessionCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,13 @@ public function testHas(): void

SessionCache::set('test_data', 5);
SessionCache::set('test_data_2', 5);
SessionCache::set('test_data_3', false);
SessionCache::set('test_data_4', true);

$this->assertTrue(SessionCache::has('test_data'));
$this->assertTrue(SessionCache::has('test_data_2'));
$this->assertTrue(SessionCache::has('test_data_3'));
$this->assertTrue(SessionCache::has('test_data_4'));
$this->assertFalse(SessionCache::has('fake_data_2'));
}

Expand Down

0 comments on commit 57a5df9

Please sign in to comment.