From a7b6d444a49ff1bab342765387710d31f08c13af Mon Sep 17 00:00:00 2001 From: Florian Polster Date: Sat, 12 Sep 2020 10:57:58 +0200 Subject: [PATCH 1/2] Run Test Workflow only if Go code was changed --- .github/workflows/echo.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/echo.yml b/.github/workflows/echo.yml index 1d7508b9..128940ca 100644 --- a/.github/workflows/echo.yml +++ b/.github/workflows/echo.yml @@ -4,9 +4,13 @@ on: push: branches: - master + paths: + - '**.go' pull_request: branches: - master + paths: + - '**.go' env: GO111MODULE: on From 31599cf1f49b12288bf82302f7907ddfc8c9b50e Mon Sep 17 00:00:00 2001 From: Florian Polster Date: Wed, 11 Nov 2020 10:19:05 +0100 Subject: [PATCH 2/2] Workflow also run on changes to go.mod, _fixture, .github changes --- .github/workflows/echo.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/echo.yml b/.github/workflows/echo.yml index 128940ca..38596ab7 100644 --- a/.github/workflows/echo.yml +++ b/.github/workflows/echo.yml @@ -6,11 +6,17 @@ on: - master paths: - '**.go' + - 'go.*' + - '_fixture/**' + - '.github/**' pull_request: branches: - master paths: - '**.go' + - 'go.*' + - '_fixture/**' + - '.github/**' env: GO111MODULE: on