Skip to content

Commit c4095f8

Browse files
committed
CI
1 parent 7d7d033 commit c4095f8

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ on:
44
push:
55
pull_request:
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
9+
cancel-in-progress: true
10+
711
jobs:
812
e2e:
913
name: PHP ${{ matrix.php }} - WP ${{ matrix.wordpress }}
10-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1115
strategy:
12-
fail-fast: true
16+
fail-fast: false
1317
matrix:
1418
php: [ "8.2", "8.3", "8.4" ]
1519
wordpress: [ "6.7", "6.8" ]
@@ -50,6 +54,8 @@ jobs:
5054
5155
- name: Checkout plugin
5256
uses: actions/checkout@v4
57+
with:
58+
persist-credentials: false
5359

5460
- name: Set up PHP
5561
uses: shivammathur/setup-php@v2

tests/Pest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646

4747
function asUser(string $login, string $password)
4848
{
49-
return visit('http://localhost:8100/wp-admin')
49+
return visit('http://localhost:8100/wp-login.php')
5050
->fill('user_login', $login)
5151
->fill('user_pass', $password)
5252
->press('wp-submit')
53-
->assertUrlIs('http://localhost:8100/wp-admin*');
53+
->assertPresent('#wpadminbar');
5454
}
5555

5656
function asAdmin()

0 commit comments

Comments
 (0)