From 903b74fc27620dfc11fc66478a6d80a4084335f3 Mon Sep 17 00:00:00 2001 From: Ivan Nepomniashchikh Date: Sat, 7 Oct 2023 07:58:44 +0000 Subject: [PATCH] create github actions test.yml --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ Makefile | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml 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: