From 1f16542e097789bfbd51d17f1b4773a38ea74e20 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Sat, 16 Oct 2021 16:30:20 +0200 Subject: [PATCH] ci: don't run tests unless needed --- .github/workflows/integration-test.yaml | 20 ++++++++++++++++++++ .github/workflows/unit-test.yaml | 20 ++++++++++++++++++++ .github/workflows/upgrade-test.yaml | 20 ++++++++++++++++++++ 3 files changed, 60 insertions(+) diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml index 70ff10e..9e8f940 100644 --- a/.github/workflows/integration-test.yaml +++ b/.github/workflows/integration-test.yaml @@ -1,6 +1,26 @@ +# This is a GitHub workflow defining a set of jobs with a set of steps. +# ref: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions +# +name: Integration tests + on: pull_request: + paths-ignore: + - "docs/**" + - "**.md" + - "**.rst" + - ".github/workflows/*" + - "!.github/workflows/integration-test.yaml" push: + paths-ignore: + - "docs/**" + - "**.md" + - "**.rst" + - ".github/workflows/*" + - "!.github/workflows/integration-test.yaml" + branches-ignore: + - "dependabot/**" + - "pre-commit-ci-update-config" workflow_dispatch: jobs: diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index 5236762..3f85a78 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -1,6 +1,26 @@ +# This is a GitHub workflow defining a set of jobs with a set of steps. +# ref: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions +# +name: Unit tests + on: pull_request: + paths-ignore: + - "docs/**" + - "**.md" + - "**.rst" + - ".github/workflows/*" + - "!.github/workflows/unit-test.yaml" push: + paths-ignore: + - "docs/**" + - "**.md" + - "**.rst" + - ".github/workflows/*" + - "!.github/workflows/unit-test.yaml" + branches-ignore: + - "dependabot/**" + - "pre-commit-ci-update-config" workflow_dispatch: jobs: diff --git a/.github/workflows/upgrade-test.yaml b/.github/workflows/upgrade-test.yaml index d251703..13c2fe1 100644 --- a/.github/workflows/upgrade-test.yaml +++ b/.github/workflows/upgrade-test.yaml @@ -1,6 +1,26 @@ +# This is a GitHub workflow defining a set of jobs with a set of steps. +# ref: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions +# +name: Upgrade tests + on: pull_request: + paths-ignore: + - "docs/**" + - "**.md" + - "**.rst" + - ".github/workflows/*" + - "!.github/workflows/upgrade-test.yaml" push: + paths-ignore: + - "docs/**" + - "**.md" + - "**.rst" + - ".github/workflows/*" + - "!.github/workflows/upgrade-test.yaml" + branches-ignore: + - "dependabot/**" + - "pre-commit-ci-update-config" workflow_dispatch: jobs: