Skip to content

Commit

Permalink
add tests to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillerv committed Dec 10, 2023
1 parent 268106b commit 3f157c3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,34 @@ jobs:

- name: Test
run: export CI=true && go test -v ./...
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Apt update
run: sudo apt update --fix-missing

- name: Install dependencies
run: sudo apt install libasound2-dev libudev-dev pkg-config

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
check-latest: true
cache: true

- name: Run Tests
run: go test -v ./...

- name: Upload test coverage
uses: actions/upload-artifact@v2
with:
name: coverage
path: coverage.out

# configuration: https://github.com/golangci/golangci-lint-action
golangci:
name: lint
Expand Down

0 comments on commit 3f157c3

Please sign in to comment.