mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-22 13:50:49 +01:00
Merge pull request #91 from wneessen/improve_workflow
Update workflows to trigger on specific file changes
This commit is contained in:
commit
cac191470f
4 changed files with 27 additions and 2 deletions
4
.github/workflows/codecov.yml
vendored
4
.github/workflows/codecov.yml
vendored
|
@ -11,7 +11,7 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- '**.go'
|
- '**.go'
|
||||||
- 'go.*'
|
- 'go.*'
|
||||||
- '.github/**'
|
- '.github/workflow/codecov.yml'
|
||||||
- 'codecov.yml'
|
- 'codecov.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
|
@ -19,7 +19,7 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- '**.go'
|
- '**.go'
|
||||||
- 'go.*'
|
- 'go.*'
|
||||||
- '.github/**'
|
- '.github/workflow/codecov.yml'
|
||||||
- 'codecov.yml'
|
- 'codecov.yml'
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
|
|
10
.github/workflows/docker-publish.yml
vendored
10
.github/workflows/docker-publish.yml
vendored
|
@ -14,10 +14,20 @@ on:
|
||||||
- cron: '24 12 * * *'
|
- cron: '24 12 * * *'
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
paths:
|
||||||
|
- '**.go'
|
||||||
|
- 'go.*'
|
||||||
|
- '.github/workflow/docker-publish.yml'
|
||||||
|
- 'codecov.yml'
|
||||||
# Publish semver tags as releases.
|
# Publish semver tags as releases.
|
||||||
tags: [ 'v*.*.*' ]
|
tags: [ 'v*.*.*' ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
paths:
|
||||||
|
- '**.go'
|
||||||
|
- 'go.*'
|
||||||
|
- '.github/workflow/docker-publish.yml'
|
||||||
|
- 'codecov.yml'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
10
.github/workflows/golangci-lint.yml
vendored
10
.github/workflows/golangci-lint.yml
vendored
|
@ -9,7 +9,17 @@ on:
|
||||||
- v*
|
- v*
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths:
|
||||||
|
- '**.go'
|
||||||
|
- 'go.*'
|
||||||
|
- '.github/workflow/golangci-lint.yml'
|
||||||
|
- 'codecov.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '**.go'
|
||||||
|
- 'go.*'
|
||||||
|
- '.github/workflow/golangci-lint.yml'
|
||||||
|
- 'codecov.yml'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
# Optional: allow read access to pull request. Use with `only-new-issues` option.
|
# Optional: allow read access to pull request. Use with `only-new-issues` option.
|
||||||
|
|
5
.github/workflows/sonarqube.yml
vendored
5
.github/workflows/sonarqube.yml
vendored
|
@ -8,6 +8,11 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main # or the name of your main branch
|
- main # or the name of your main branch
|
||||||
|
paths:
|
||||||
|
- '**.go'
|
||||||
|
- 'go.*'
|
||||||
|
- '.github/workflow/sonarqube.yml'
|
||||||
|
- 'codecov.yml'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
|
|
Loading…
Reference in a new issue