Skip to content

Commit

Permalink
Bump Go version to 1.19
Browse files Browse the repository at this point in the history
Bump Go version to `1.19`.

Simplify GitHub Actions setup
  • Loading branch information
HeavyWombat committed Oct 24, 2022
1 parent e8ab6c2 commit 0b95306
Show file tree
Hide file tree
Showing 15 changed files with 137 additions and 139 deletions.
70 changes: 0 additions & 70 deletions .github/workflows/build.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/golangci-lint.yml
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
55 changes: 55 additions & 0 deletions .github/workflows/tests.yml
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
9 changes: 8 additions & 1 deletion README.md
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
2 changes: 1 addition & 1 deletion bunt_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package bunt_test
import (
"testing"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion bunt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package bunt_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

. "github.com/gonvenience/bunt"
Expand Down
2 changes: 1 addition & 1 deletion colors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package bunt_test
import (
"fmt"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

. "github.com/gonvenience/bunt"
Expand Down
2 changes: 1 addition & 1 deletion convenience_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package bunt_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

. "github.com/gonvenience/bunt"
Expand Down
2 changes: 1 addition & 1 deletion error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package bunt_test

import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

. "github.com/gonvenience/bunt"
Expand Down
17 changes: 11 additions & 6 deletions go.mod
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
)
Loading

0 comments on commit 0b95306

Please sign in to comment.