From 4707321384776b358e7b75d1724459d81fc1a410 Mon Sep 17 00:00:00 2001 From: Brice Figureau Date: Wed, 27 Dec 2023 17:40:45 +0100 Subject: [PATCH 1/3] Run Go tests on master push --- .github/workflows/go.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ea46b2e..4381e17 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,6 +1,11 @@ name: Go unit tests -on: +on: + workflow_dispatch: + push: + branches: + - master + - main pull_request: paths: - '**.go' From eaba856c752db13f60b59ad72d0cc9e4ae7a5bcd Mon Sep 17 00:00:00 2001 From: Brice Figureau Date: Wed, 27 Dec 2023 17:55:24 +0100 Subject: [PATCH 2/3] Run github actions when modifying workflow --- .github/workflows/go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4381e17..9ed28a0 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,6 +11,7 @@ on: - '**.go' - go.mod - go.sum + - '.github/workflows/go.yml' jobs: gotest: From 8a85d49063f895d3fce0cda957832ba61ffe8c62 Mon Sep 17 00:00:00 2001 From: Brice Figureau Date: Wed, 27 Dec 2023 17:57:54 +0100 Subject: [PATCH 3/3] Run `make ci` for tests --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 9ed28a0..a97e129 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -27,4 +27,4 @@ jobs: check-latest: true - name: Test - run: go test -v ./... + run: make ci