Skip to content

Commit 14fcae4

Browse files
committed
chore(ci): prevents duplicate workflow runs
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>
1 parent d33767c commit 14fcae4

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/go-test.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
name: go test
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
branches:
8+
- master
9+
paths-ignore:
10+
- '**.md'
11+
12+
pull_request:
13+
paths-ignore:
14+
- '**.md'
415

516
jobs:
617
lint:
@@ -42,7 +53,7 @@ jobs:
4253
- run: go test -v -race -coverprofile="coverage-${{ matrix.os }}.${{ matrix.go_version }}.out" -covermode=atomic -coverpkg=$(go list)/... ./...
4354

4455
- name: Upload coverage to codecov
45-
uses: codecov/codecov-action@v4
56+
uses: codecov/codecov-action@v3
4657
with:
4758
files: './coverage-${{ matrix.os }}.${{ matrix.go_version }}.out'
4859
flags: '${{ matrix.go_version }}'

0 commit comments

Comments
 (0)