From f23bf7856ad1f8cfefe9f4974bf3753f42700bb2 Mon Sep 17 00:00:00 2001 From: Lianbo Date: Tue, 12 Mar 2024 12:01:20 +0800 Subject: [PATCH] fix test workflow should be run in the main branch (#67) * fix test workflow should be run in the main branch * feat: support workflow_dispatch --- .github/workflows/codestyle.yml | 1 + .github/workflows/static-analysis.yml | 1 + .github/workflows/test.yml | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml index 5b4c473..579023f 100644 --- a/.github/workflows/codestyle.yml +++ b/.github/workflows/codestyle.yml @@ -3,6 +3,7 @@ on: pull_request: paths: - "!*.md" + workflow_dispatch: jobs: code-coverage: name: Code Coverage diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index b6f8a8d..7e8f1d5 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -1,6 +1,7 @@ name: static analysis on: + workflow_dispatch: push: branches: - master diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 24d128a..3a39deb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,8 +1,12 @@ name: test on: + workflow_dispatch: pull_request: paths: - "!*.md" + push: + branches: + - master jobs: phptests: runs-on: ${{ matrix.operating-system }}