Skip to content

Commit

Permalink
create github actions test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnNON committed Oct 7, 2023
1 parent 52361d9 commit 903b74f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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 ./...
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY:
test:
go test ./oshi_test
go test -v ./...

.PHONY:
lint:
Expand Down

0 comments on commit 903b74f

Please sign in to comment.