Skip to content

Commit

Permalink
[workflow-filter][framework][core] Refactor github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Aug 15, 2024
1 parent d5d011f commit fb78cf8
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/lib.yml → .github/workflows/core.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lib-swoole
name: Core Tests

on: [ push, pull_request ]

Expand All @@ -8,7 +8,7 @@ env:
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[lib]')"
if: "!contains(github.event.head_commit.message, '[workflow-filter]') || contains(github.event.head_commit.message, '[core]')"
services:
tinyproxy:
image: "vimagick/tinyproxy"
Expand Down Expand Up @@ -37,6 +37,9 @@ jobs:
make VERBOSE=1 -j &&
sudo make install

- name: install valgrind
run: sudo apt install -y valgrind

- name: make test
run:
cd core-tests && valgrind ./run.sh
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ext.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ext-swoole
name: Compile Tests

on: [ push, pull_request ]

Expand All @@ -7,7 +7,7 @@ env:

jobs:
build-ubuntu-latest:
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[ext]')"
if: "!contains(github.event.head_commit.message, '[workflow-filter]') || 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
@@ -1,4 +1,4 @@
name: Frameworks Tests
name: Framework Tests

on:
push:
Expand All @@ -10,7 +10,7 @@ env:
jobs:
linux:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[framework]')"
if: "!contains(github.event.head_commit.message, '[workflow-filter]') || contains(github.event.head_commit.message, '[framework]')"
strategy:
fail-fast: false
matrix:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/iouring.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Async IO With IOUring
name: Linux io_uring Tests

on: [push, pull_request]

jobs:
test-linux:
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[iouring]')"
if: "!contains(github.event.head_commit.message, '[workflow-filter]') || contains(github.event.head_commit.message, '[iouring]')"
runs-on: ubuntu-latest
strategy:
fail-fast: false
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, '[test]') || contains(github.event.head_commit.message, '[thread]')"
if: "!contains(github.event.head_commit.message, '[workflow-filter]') || contains(github.event.head_commit.message, '[thread]')"
strategy:
fail-fast: false
matrix:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: test-linux
name: Unit Tests

on: [push, pull_request]

jobs:
test-linux:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[test]')"
if: "!contains(github.event.head_commit.message, '[workflow-filter]') || contains(github.event.head_commit.message, '[unit]')"
strategy:
fail-fast: false
matrix:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: conflict-exts
name: Xdebug Support Tests

on: [push, pull_request]

jobs:
tests:
if: "!contains(github.event.head_commit.message, '[test]') || contains(github.event.head_commit.message, '[conflict]')"
if: "!contains(github.event.head_commit.message, '[workflow-filter]') || contains(github.event.head_commit.message, '[xdebug]')"
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down

0 comments on commit fb78cf8

Please sign in to comment.