Skip to content

Commit

Permalink
[test][framework][lib] fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Aug 15, 2024
1 parent d48659d commit d5d011f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/conflict-exts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

jobs:
tests:
if: "github.repository_owner == 'swoole' && !contains(github.event.head_commit.message, '[test]')"
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[conflict]')"
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:

jobs:
build-ubuntu-latest:
if: "!contains(github.event.head_commit.message, '[test]')"
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[ext]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
jobs:
linux:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[test]')"
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[framework]')"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
php --ri swoole
- name: Laravel Octane Tests
if: matrix.framework == 'Laravel Octane'
if: matrix.framework == 'Laravel Octane' && matrix.php-version != '8.3'
run: |
git clone https://github.com/laravel/octane.git --depth=1
cd octane/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/iouring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on: [push, pull_request]

jobs:
test-linux:
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[iouring]')"
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[test]')"
strategy:
fail-fast: false
matrix:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[test]')"
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[lib]')"
services:
tinyproxy:
image: "vimagick/tinyproxy"
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:

- name: make test
run:
cd core-tests && ./run.sh
cd core-tests && valgrind ./run.sh

- name: run coverage
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
test-linux:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[zts]')"
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[test]')"
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/thread.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
test-linux:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[nts]')"
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[thread]')"
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit d5d011f

Please sign in to comment.