Skip to content

Commit

Permalink
run tests automatically and update dependencies (#12)
Browse files Browse the repository at this point in the history
This change:

* configures dependabot to automatically notify when dependencies are updated,
* updates dependencies to current versions
* configures GitHub to automatically run tests for each PR
  • Loading branch information
mmorel-35 committed Aug 8, 2021
1 parent cafcf97 commit a988ae8
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
25 changes: 25 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Go

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
2 changes: 1 addition & 1 deletion Readme
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
This is a Go package for manipulating paragraphs of text.

See https://godoc.org/github.com/kr/text for full documentation.
See https://pkg.go.dev/github.com/kr/text for full documentation.
2 changes: 1 addition & 1 deletion colwriter/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
)

const (
// Print each input line ending in a colon ':' separately.
// BreakOnColon Print each input line ending in a colon ':' separately.
BreakOnColon uint = 1 << iota
)

Expand Down
6 changes: 4 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module "github.com/kr/text"
module github.com/kr/text

require "github.com/creack/pty" v1.1.9
go 1.12

require github.com/creack/pty v1.1.14
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/creack/pty v1.1.14 h1:55VbUWoBxE1iTAh3B6JztD6xyQ06CvW/31oD6rYwrtY=
github.com/creack/pty v1.1.14/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=

0 comments on commit a988ae8

Please sign in to comment.