From dc460e1b9bedfd61ef4aec7d231d8bc9ad39977b Mon Sep 17 00:00:00 2001 From: Ian Rees Date: Thu, 25 Jan 2024 16:02:00 -0800 Subject: [PATCH] Set up testing CI --- .github/workflows/test.yaml | 19 +++++++++++++++++++ log_test.go | 10 ++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/test.yaml create mode 100644 log_test.go diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..0c13346 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,19 @@ +name: Test Suite + +on: + pull_request: + types: + - opened + push: + branches: + - '*' + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: '1.21.5' + - run: go test -v -count=1 ./... diff --git a/log_test.go b/log_test.go new file mode 100644 index 0000000..0be20fc --- /dev/null +++ b/log_test.go @@ -0,0 +1,10 @@ +package log + +import ( + "fmt" + "testing" +) + +func TestLog(t *testing.T) { + fmt.Println("ok") +}