Skip to content

Commit 3a9c3c2

Browse files
authored
Actions: Only run tests once (#1207)
* Actions: Only run tests once * Avoid skipped actions * Same for linter
1 parent 071a5e4 commit 3a9c3c2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/phpcs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: PHP_CodeSniffer
22
on:
33
push:
4+
branches:
5+
- trunk
46
pull_request:
57
jobs:
68
phpcs:

.github/workflows/phpunit.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Unit Testing
22
on:
33
push:
4+
branches:
5+
- trunk
46
pull_request:
57
jobs:
68
phpunit:
@@ -37,7 +39,7 @@ jobs:
3739
extensions: mysql
3840

3941
- name: Install Composer dependencies for PHP
40-
uses: "ramsey/composer-install@v3"
42+
uses: ramsey/composer-install@v3
4143

4244
- name: Setup Test Environment
4345
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 ${{ matrix.wp-version }}

0 commit comments

Comments
 (0)