Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup workflow and update dependencies #12

Merged
merged 14 commits into from
Aug 8, 2021
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 ./...
3 changes: 0 additions & 3 deletions Readme

This file was deleted.

7 changes: 7 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This is a Go package for manipulating paragraphs of text.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to do one complete thing at a time in each PR. Renaming & updating the readme seems like a separate thing from updating dependencies to me. What do you think?


[![GoDoc](https://pkg.go.dev/badge/github.com/kr/text)](https://pkg.go.dev/github.com/kr/text)
[![Go Report Card](https://goreportcard.com/badge/github.com/kr/text)](https://goreportcard.com/report/github.com/kr/text)


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=