From bbd2db2b23cdf26cd01085756ef19b26763d13b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20BIDON?= Date: Thu, 1 Feb 2024 10:59:19 +0100 Subject: [PATCH] chore(ci): prevents duplicate workflow runs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric BIDON --- .github/workflows/go-test.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 35c3ad4..5940981 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -1,6 +1,17 @@ name: go test -on: [push, pull_request] +on: + push: + tags: + - v* + branches: + - master + paths-ignore: + - '**.md' + + pull_request: + paths-ignore: + - '**.md' jobs: lint: @@ -27,7 +38,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest, macos-latest, windows-latest ] - go_version: ['oldstable', 'stable', '1.19' ] + go_version: ['oldstable', 'stable', '1.19'] steps: - name: Run unit tests