Merge pull request #283 from controlplaneio/dependabot/go_modules/sig… #297
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Testing - Unit | |
# Split until path filtering for jobs added | |
# https://github.community/t/path-filtering-for-jobs-and-steps/16447 | |
on: | |
push: | |
branches: [master] | |
paths: | |
- "**.go" | |
- "go.mod" | |
- "go.sum" | |
pull_request: | |
branches: [master] | |
paths: | |
- "**.go" | |
- "go.mod" | |
- "go.sum" | |
jobs: | |
unit: | |
name: Go Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Run go unit tests | |
run: | | |
make test-unit |