-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump Go version to `1.19`. Simplify GitHub Actions setup
- Loading branch information
1 parent
e8ab6c2
commit 0b95306
Showing
15 changed files
with
137 additions
and
139 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: golangci-lint | ||
|
||
on: | ||
push: | ||
tags-ignore: | ||
- '**' | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: golangci-lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.x | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build source code | ||
run: go build ./... | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
only-new-issues: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
name: Tests | ||
|
||
on: | ||
push: | ||
tags-ignore: | ||
- '**' | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.19.x | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Verify Go Modules Setup | ||
run: | | ||
go mod verify | ||
- name: Build Go Code | ||
run: | | ||
go build ./... | ||
- name: Run Go Unit Tests | ||
run: | | ||
go run github.com/onsi/ginkgo/v2/ginkgo \ | ||
--coverprofile=unit.coverprofile \ | ||
--randomize-all \ | ||
--randomize-suites \ | ||
--fail-on-pending \ | ||
--keep-going \ | ||
--slow-spec-threshold=4m \ | ||
--compilers=2 \ | ||
--race \ | ||
--trace \ | ||
./... | ||
- name: Upload Code Coverage Profile | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
files: unit.coverprofile | ||
flags: unittests | ||
fail_ci_if_error: true | ||
verbose: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# bunt [![License](https://img.shields.io/github/license/gonvenience/bunt.svg)](https://github.com/gonvenience/bunt/blob/main/LICENSE) [![Go Report Card](https://goreportcard.com/badge/github.com/gonvenience/bunt)](https://goreportcard.com/report/github.com/gonvenience/bunt) [![Build and Tests](https://github.com/gonvenience/bunt/workflows/Build%20and%20Tests/badge.svg)](https://github.com/gonvenience/bunt/actions?query=workflow%3A%22Build+and+Tests%22) [![Codecov](https://img.shields.io/codecov/c/github/gonvenience/bunt/main.svg)](https://codecov.io/gh/gonvenience/bunt) [![PkgGoDev](https://pkg.go.dev/badge/github.com/gonvenience/bunt)](https://pkg.go.dev/github.com/gonvenience/bunt) [![Release](https://img.shields.io/github/release/gonvenience/bunt.svg)](https://github.com/gonvenience/bunt/releases/latest) ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/gonvenience/bunt) | ||
# bunt | ||
|
||
[![License](https://img.shields.io/github/license/gonvenience/bunt.svg)](https://github.com/gonvenience/bunt/blob/main/LICENSE) | ||
[![Go Report Card](https://goreportcard.com/badge/github.com/gonvenience/bunt)](https://goreportcard.com/report/github.com/gonvenience/bunt) | ||
[![Tests](https://github.com/gonvenience/bunt/workflows/Tests/badge.svg)](https://github.com/gonvenience/bunt/actions?query=workflow%3A%22Tests%22) | ||
[![Codecov](https://img.shields.io/codecov/c/github/gonvenience/bunt/main.svg)](https://codecov.io/gh/gonvenience/bunt) | ||
[![PkgGoDev](https://pkg.go.dev/badge/github.com/gonvenience/bunt)](https://pkg.go.dev/github.com/gonvenience/bunt) | ||
[![Release](https://img.shields.io/github/release/gonvenience/bunt.svg)](https://github.com/gonvenience/bunt/releases/latest) ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/gonvenience/bunt) | ||
|
||
Golang package for creating true color output in terminals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
module github.com/gonvenience/bunt | ||
|
||
go 1.17 | ||
go 1.19 | ||
|
||
require ( | ||
github.com/gonvenience/term v1.0.2 | ||
github.com/lucasb-eyer/go-colorful v1.2.0 | ||
github.com/mattn/go-ciede2000 v0.0.0-20170301095244-782e8c62fec3 | ||
github.com/onsi/ginkgo v1.16.5 | ||
github.com/onsi/ginkgo/v2 v2.4.0 | ||
github.com/onsi/gomega v1.22.1 | ||
) | ||
|
||
require ( | ||
github.com/fsnotify/fsnotify v1.5.1 // indirect | ||
github.com/go-logr/logr v1.2.3 // indirect | ||
github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 // indirect | ||
github.com/google/go-cmp v0.5.8 // indirect | ||
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect | ||
github.com/mattn/go-isatty v0.0.14 // indirect | ||
github.com/mitchellh/go-ps v1.0.0 // indirect | ||
github.com/nxadm/tail v1.4.8 // indirect | ||
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect | ||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect | ||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
github.com/onsi/ginkgo v1.16.5 // indirect | ||
golang.org/x/net v0.1.0 // indirect | ||
golang.org/x/sys v0.1.0 // indirect | ||
golang.org/x/term v0.1.0 // indirect | ||
golang.org/x/text v0.4.0 // indirect | ||
golang.org/x/tools v0.2.0 // indirect | ||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
Oops, something went wrong.