Merge pull request #218 from strukturag/ci-workflows

CI: Only run workflows if relevant files have changed.
This commit is contained in:
Joachim Bauch 2022-04-04 16:14:44 +02:00 committed by GitHub
commit b267f0dc50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View file

@ -3,8 +3,14 @@ name: "CodeQL"
on: on:
push: push:
branches: [ master ] branches: [ master ]
paths:
- '**.go'
- 'go.*'
pull_request: pull_request:
branches: [ master ] branches: [ master ]
paths:
- '**.go'
- 'go.*'
schedule: schedule:
- cron: '28 2 * * 5' - cron: '28 2 * * 5'

View file

@ -3,8 +3,14 @@ name: lint
on: on:
push: push:
branches: [ master ] branches: [ master ]
paths:
- '**.go'
- 'go.*'
pull_request: pull_request:
branches: [ master ] branches: [ master ]
paths:
- '**.go'
- 'go.*'
jobs: jobs:
lint: lint:

View file

@ -3,8 +3,16 @@ name: test
on: on:
push: push:
branches: [ master ] branches: [ master ]
paths:
- '**.go'
- 'go.*'
- 'Makefile'
pull_request: pull_request:
branches: [ master ] branches: [ master ]
paths:
- '**.go'
- 'go.*'
- 'Makefile'
jobs: jobs:
go: go: