Skip to content

Commit

Permalink
Merge pull request #10 from netboxlabs/OBS-385-gha-go-test
Browse files Browse the repository at this point in the history
feat: OBS-385 - go test github workflow
  • Loading branch information
mfiedorowicz authored Feb 2, 2024
2 parents 01bad08 + 9b4b23f commit 6206307
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: go-test
on:
push:
branches:
- "!release"
pull_request:

jobs:
go-test:
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 }}
working-directory: ${{ matrix.go }}
run: go build ./...
- name: Run go test ${{ matrix.go }}
working-directory: ${{ matrix.go }}
run: go test -race ./...

0 comments on commit 6206307

Please sign in to comment.