Skip to content

Commit

Permalink
chore(ci): prevents duplicate workflow runs
Browse files Browse the repository at this point in the history
Signed-off-by: Frédéric BIDON <[email protected]>
  • Loading branch information
fredbi committed Feb 1, 2024
1 parent 7135206 commit 66c912f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -42,7 +53,7 @@ jobs:
- run: go test -v -race -coverprofile="coverage-${{ matrix.os }}.${{ matrix.go_version }}.out" -covermode=atomic -coverpkg=$(go list)/... ./...

- name: Upload coverage to codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v3
with:
files: './coverage-${{ matrix.os }}.${{ matrix.go_version }}.out'
flags: '${{ matrix.go_version }}'
Expand Down

0 comments on commit 66c912f

Please sign in to comment.