From bf135ce2027a88da4812d000f791abcb66e9d1bf Mon Sep 17 00:00:00 2001 From: Pat Losoponkul Date: Wed, 22 May 2024 13:42:36 +0700 Subject: [PATCH] ci: skip jobs when pr title is mark skipped --- .github/workflows/integration-tests.yml | 2 ++ .github/workflows/lint.yml | 3 +++ .github/workflows/performance-tests.yml | 2 ++ .github/workflows/unit-tests.yml | 2 ++ 4 files changed, 9 insertions(+) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 3a8202ed48..17309ed853 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -26,6 +26,8 @@ jobs: run-integration-tests: name: "Run integration tests" runs-on: ubuntu-latest + if: | + ${{ !contains(github.event.pull_request.title, '[skip ci]') }} env: REPORTS_DIR: "tests/integration-tests/target/site/serenity" steps: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e1e6eead0b..743c015fe8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -20,6 +20,9 @@ jobs: runs-on: ubuntu-latest + if: | + ${{ !contains(github.event.pull_request.title, '[skip ci]') }} + permissions: contents: write issues: write diff --git a/.github/workflows/performance-tests.yml b/.github/workflows/performance-tests.yml index 6a85eaaf81..c0279f6c6d 100644 --- a/.github/workflows/performance-tests.yml +++ b/.github/workflows/performance-tests.yml @@ -21,6 +21,8 @@ jobs: run-e2e-tests: name: "Run performance tests" runs-on: ubuntu-latest + if: | + ${{ !contains(github.event.pull_request.title, '[skip ci]') }} steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 065e5a5fcd..a2ca56a9f5 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -16,6 +16,8 @@ jobs: build-and-unit-tests: name: "Build and unit tests" runs-on: self-hosted + if: | + ${{ !contains(github.event.pull_request.title, 'skip ci') }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} container: