mirror of
https://github.com/dstotijn/go-notion.git
synced 2025-06-23 00:30:41 +02:00
Add testing via GitHub Actions
This commit is contained in:
19
.github/workflows/test.yaml
vendored
Normal file
19
.github/workflows/test.yaml
vendored
Normal file
@ -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 ./...
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
[](https://github.com/dstotijn/go-notion/tags)
|
SemVer)](https://img.shields.io/github/v/tag/dstotijn/go-notion?label=go%20module)](https://github.com/dstotijn/go-notion/tags)
|
||||||
|
[](https://github.com/dstotijn/go-notion/actions/workflows/test.yml)
|
||||||
[](https://pkg.go.dev/github.com/dstotijn/go-notion)
|
Reference](https://pkg.go.dev/badge/github.com/dstotijn/go-notion.svg)](https://pkg.go.dev/github.com/dstotijn/go-notion)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
|
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
|||||||
module github.com/dstotijn/go-notion
|
module github.com/dstotijn/go-notion
|
||||||
|
|
||||||
go 1.16
|
go 1.19
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/google/go-cmp v0.5.5
|
github.com/google/go-cmp v0.5.5
|
||||||
|
Reference in New Issue
Block a user