-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: OBS-385 - go test github workflow
Signed-off-by: Michal Fiedorowicz <[email protected]>
- Loading branch information
1 parent
01bad08
commit 6fad8ab
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: go-test | ||
on: | ||
push: | ||
branches: | ||
- "!release" | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: [ | ||
"diode-sdk-go", | ||
"diode-server", | ||
] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21.x' | ||
check-latest: true | ||
- name: Run go build ${{ matrix.go }} | ||
run: go build ./... | ||
- name: Run go test ${{ matrix.go }} | ||
run: go test ./... |