Skip to content

Commit 1004bf0

Browse files
committed
feat: use standard library embed
Use the standard library embed for internal files instead of esc and go-bindata which significantly simplifies the code and removes the need for 3rd party dependencies. Also: * Update go workflow with latest actions so we get caching.
1 parent 16a93f6 commit 1004bf0

File tree

17 files changed

+25
-834
lines changed

17 files changed

+25
-834
lines changed

Diff for: .github/workflows/go.yml

+7-20
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,25 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
go: [ 1.16.x, 1.15.x, 1.14.x, 1.13.x, 1.12.x, 1.11.x, 1.10.x, 1.9.x ]
17-
env:
18-
GOPATH: ${{ github.workspace }}
19-
GO111MODULE: auto
20-
defaults:
21-
run:
22-
working-directory: ${{ env.GOPATH }}/src/github.com/cweill/gotests
16+
go: [ 1.16.x, 1.19.x, 1.20.x ]
2317
steps:
2418

19+
- name: Check out code
20+
uses: actions/checkout@v3
21+
2522
- name: Set up Go 1.x
26-
uses: actions/setup-go@v2
23+
uses: actions/setup-go@v4
2724
with:
2825
go-version: ${{ matrix.go }}
2926

30-
- name: Check out code
31-
uses: actions/checkout@v2
32-
with:
33-
path: ${{ env.GOPATH }}/src/github.com/cweill/gotests
34-
35-
- name: Get Dependencies (github.com/golang.org/x/tools/imports)
36-
run: go get -v ./...
37-
3827
- name: Test
3928
run: |
4029
go test -v ./...
4130
4231
- name: Coverage Dependencies
4332
if: matrix.go == '1.16.x'
4433
run: |
45-
go get github.com/mattn/goveralls
46-
go get -v ./...
47-
34+
go install github.com/mattn/goveralls@latest
4835
4936
- name: Coverage Reporting Generation
5037
if: matrix.go == '1.16.x'
@@ -54,6 +41,6 @@ jobs:
5441
5542
- name: Coverage - Sending Report to Coveral
5643
if: matrix.go == '1.16.x'
57-
run: $GOPATH/bin/goveralls -coverprofile=coverage.cov -service=github
44+
run: goveralls -coverprofile=coverage.cov -service=github
5845
env:
5946
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The following shows `gotests` in action using the [official Sublime Text 3 plugi
1010

1111
## Installation
1212

13-
__Minimum Go version:__ Go 1.6
13+
__Minimum Go version:__ Go 1.16
1414

1515
Use [`go get`](https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies) to install and update:
1616

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/cweill/gotests
22

33
require golang.org/x/tools v0.0.0-20191109212701-97ad0ed33101
44

5-
go 1.6
5+
go 1.16

Diff for: internal/render/README.md

-7
This file was deleted.

0 commit comments

Comments
 (0)