From 21887877dacbad4f0bc4613651d84b3babb27136 Mon Sep 17 00:00:00 2001 From: Benjamin Kampmann Date: Wed, 23 Feb 2022 16:04:05 +0100 Subject: [PATCH] chore(CI): limit CI runs to non-draft PRs and manual dispatching --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bb05f2b7..600e97a8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,18 @@ name: CI on: + workflow_dispatch: push: + branches: + - master pull_request: branches: [ main ] + types: + - opened + - reopened + - synchronize + - ready_for_review + env: CARGO_TERM_COLOR: always @@ -12,6 +21,7 @@ jobs: style: name: Check style runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} steps: - name: Checkout the repo @@ -35,6 +45,7 @@ jobs: name: Spell Check with Typos needs: [style] runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} steps: - name: Checkout Actions Repository @@ -47,6 +58,7 @@ jobs: name: Run clippy needs: [style] runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} steps: - name: Checkout the repo @@ -86,6 +98,7 @@ jobs: check-wasm: name: checking WASM builds runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} strategy: # fail-fast: true @@ -159,6 +172,7 @@ jobs: name: ${{ matrix.name }} WASM test runs-on: ubuntu-latest continue-on-error: ${{ matrix.experimental }} + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} strategy: matrix: @@ -263,6 +277,7 @@ jobs: test-appservice: name: ${{ matrix.name }} + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} runs-on: ${{ matrix.os || 'ubuntu-latest' }} strategy: @@ -323,6 +338,7 @@ jobs: test-features: name: ${{ matrix.name }} + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} runs-on: ${{ matrix.os || 'ubuntu-latest' }} strategy: @@ -400,6 +416,7 @@ jobs: test: name: ${{ matrix.name }} + if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} runs-on: ${{ matrix.os || 'ubuntu-latest' }} strategy: