Skip to content

Commit

Permalink
feat: add Golang tests to GitHub test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Stratus3D committed Jan 27, 2024
1 parent d0059aa commit c2e5616
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Lint
run: staticcheck -tests -show-ignored ./...
- name: Build
run: build -v ./...

actions:
runs-on: ubuntu-latest
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,21 @@ jobs:
- 'defaults'
- 'help.txt'
test-golang:
needs: detect-changes
if: ${{ needs.detect-changes.outputs.cli == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.5'
- name: Install dependencies
run: go get .
- name: Run Go tests
run: go test

ubuntu:
needs: detect-changes
# only run if
Expand Down

0 comments on commit c2e5616

Please sign in to comment.