1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-02-19 19:00:17 +02:00

Add testing via GitHub Actions

This commit is contained in:
David Stotijn 2022-09-11 20:22:32 +02:00
parent bf5c41b906
commit ac5fdc2f75
No known key found for this signature in database
GPG Key ID: B23243A9C47CEE2D
3 changed files with 21 additions and 1 deletions

19
.github/workflows/test.yaml vendored Normal file
View 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 ./...

View File

@ -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)

2
go.mod
View File

@ -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