diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..14d59e4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21.x' + + - name: Test + run: go test -v ./... diff --git a/Makefile b/Makefile index 8c4792b..e5ffefc 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: test: - go test ./oshi_test + go test -v ./... .PHONY: lint: