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: paths:
- '**.go' - '**.go'
- 'go.*' - 'go.*'
- '.github/**' - '.github/workflows/codecov.yml'
- 'codecov.yml' - 'codecov.yml'
pull_request: pull_request:
branches: branches:
@ -18,7 +18,7 @@ on:
paths: paths:
- '**.go' - '**.go'
- 'go.*' - 'go.*'
- '.github/**' - '.github/workflows/codecov.yml'
- 'codecov.yml' - 'codecov.yml'
env: env:
TEST_HOST: ${{ secrets.TEST_HOST }} TEST_HOST: ${{ secrets.TEST_HOST }}

View file

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

View file

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