diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..cc7a143 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,19 @@ +name: Test +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v3 + with: + go-version: "^1.19.1" + cache: true + - run: go test ./... diff --git a/README.md b/README.md index 207af24..c48af97 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/dstotijn/go-notion?label=go%20module)](https://github.com/dstotijn/go-notion/tags) +[![Test](https://github.com/dstotijn/go-notion/actions/workflows/test.yaml/badge.svg)](https://github.com/dstotijn/go-notion/actions/workflows/test.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/dstotijn/go-notion.svg)](https://pkg.go.dev/github.com/dstotijn/go-notion) [![GitHub](https://img.shields.io/github/license/dstotijn/go-notion)](LICENSE) diff --git a/go.mod b/go.mod index 1c4ebfc..3491697 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/dstotijn/go-notion -go 1.16 +go 1.19 require ( github.com/google/go-cmp v0.5.5