Update GitHub Actions paths for Go and workflow files

This commit refines the paths in GitHub Actions workflows to more precisely track changes in Go-related files and specific workflow files. General `.github/**` paths have been replaced with explicit references to relevant workflow files within `.github/workflows`.
This commit is contained in:
Winni Neessen 2024-10-04 15:28:22 +02:00
parent 04023a1a25
commit d931050a6f
Signed by: wneessen
GPG key ID: 385AC9889632126E
3 changed files with 14 additions and 8 deletions

View file

@ -10,7 +10,7 @@ on:
paths:
- '**.go'
- 'go.*'
- '.github/**'
- '.github/workflows/codecov.yml'
- 'codecov.yml'
pull_request:
branches:
@ -18,7 +18,7 @@ on:
paths:
- '**.go'
- 'go.*'
- '.github/**'
- '.github/workflows/codecov.yml'
- 'codecov.yml'
env:
TEST_HOST: ${{ secrets.TEST_HOST }}

View file

@ -10,16 +10,14 @@ on:
paths:
- '**.go'
- 'go.*'
- '.github/**'
- 'codecov.yml'
- '.github/workflows/offline-tests.yml'
pull_request:
branches:
- main
paths:
- '**.go'
- 'go.*'
- '.github/**'
- 'codecov.yml'
- '.github/workflows/offline-tests.yml'
permissions:
contents: read

View file

@ -10,10 +10,18 @@ permissions:
on:
push:
branches:
- main # or the name of your main branch
- main
paths:
- '**.go'
- 'go.*'
- '.github/workflows/sonarqube.yml'
pull_request:
branches:
- main # or the name of your main branch
- main
paths:
- '**.go'
- 'go.*'
- '.github/workflows/sonarqube.yml'
jobs:
build:
name: Build