Run code tests on go.mod and go.sum changes

This commit is contained in:
Malte Poll 2022-10-14 10:27:49 +02:00 committed by Malte Poll
parent 74c3c93dec
commit 6c9e18a6b5
7 changed files with 26 additions and 0 deletions

View File

@ -8,9 +8,13 @@ on:
- main - main
paths: paths:
- "**.go" - "**.go"
- "**/go.mod"
- "**/go.sum"
pull_request: pull_request:
paths: paths:
- "**.go" - "**.go"
- "**/go.mod"
- "**/go.sum"
# Abort runs of *this* workflow, if a new commit with the same ref is pushed. # Abort runs of *this* workflow, if a new commit with the same ref is pushed.
concurrency: concurrency:

View File

@ -6,10 +6,12 @@ on:
paths: paths:
- "**.go" - "**.go"
- "**/go.mod" - "**/go.mod"
- "**/go.sum"
pull_request: pull_request:
paths: paths:
- "**.go" - "**.go"
- "**/go.mod" - "**/go.mod"
- "**/go.sum"
jobs: jobs:
check: check:

View File

@ -7,9 +7,13 @@ on:
- main - main
paths: paths:
- "**.go" - "**.go"
- "**/go.mod"
- "**/go.sum"
pull_request: pull_request:
paths: paths:
- "**.go" - "**.go"
- "**/go.mod"
- "**/go.sum"
# Abort runs of *this* workflow, if a new commit with the same ref is pushed. # Abort runs of *this* workflow, if a new commit with the same ref is pushed.
concurrency: concurrency:

View File

@ -7,9 +7,13 @@ on:
- main - main
paths: paths:
- "**.go" - "**.go"
- "**/go.mod"
- "**/go.sum"
pull_request: pull_request:
paths: paths:
- "**.go" - "**.go"
- "**/go.mod"
- "**/go.sum"
# Abort runs of *this* workflow, if a new commit with the same ref is pushed. # Abort runs of *this* workflow, if a new commit with the same ref is pushed.
concurrency: concurrency:

View File

@ -7,9 +7,13 @@ on:
- main - main
paths: paths:
- "**.go" - "**.go"
- "**/go.mod"
- "**/go.sum"
pull_request: pull_request:
paths: paths:
- "**.go" - "**.go"
- "**/go.mod"
- "**/go.sum"
permissions: permissions:
contents: read contents: read

View File

@ -7,9 +7,13 @@ on:
- main - main
paths: paths:
- "**.go" - "**.go"
- "**/go.mod"
- "**/go.sum"
pull_request: pull_request:
paths: paths:
- "**.go" - "**.go"
- "**/go.mod"
- "**/go.sum"
# Abort runs of *this* workflow, if a new commit with the same ref is pushed. # Abort runs of *this* workflow, if a new commit with the same ref is pushed.
concurrency: concurrency:

View File

@ -7,9 +7,13 @@ on:
- main - main
paths: paths:
- "**.go" - "**.go"
- "**/go.mod"
- "**/go.sum"
pull_request: pull_request:
paths: paths:
- "**.go" - "**.go"
- "**/go.mod"
- "**/go.sum"
# Abort runs of *this* workflow, if a new commit with the same ref is pushed. # Abort runs of *this* workflow, if a new commit with the same ref is pushed.
concurrency: concurrency: