Skip to content

Commit

Permalink
Only run tests when go code is modified
Browse files Browse the repository at this point in the history
  • Loading branch information
gfenn-newbury committed Dec 21, 2021
1 parent 0ff560a commit a192776
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/client_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ name: Go Client Tests
on:
push:
branches:
- main
- release/*
- 'main'
- 'release/*'
paths:
- 'main.go'
- 'client/*.go'
pull_request:
branches:
- main
- release/*
- 'main'
- 'release/*'
paths:
- 'main.go'
- 'client/*.go'
jobs:
build:
name: Build
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/provider_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ name: Terraform Provider Tests
on:
push:
branches:
- main
- release/*
- 'main'
- 'release/*'
paths:
- 'main.go'
- 'routeros/*.go'
pull_request:
branches:
- main
- release/*
- 'main'
- 'release/*'
paths:
- 'main.go'
- 'routeros/*.go'
jobs:
build:
name: Build
Expand Down

0 comments on commit a192776

Please sign in to comment.