Skip to content

Commit

Permalink
feat: use standard library embed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stevenh committed Apr 22, 2023
1 parent 16a93f6 commit 1004bf0
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 834 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,25 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
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 ]
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: auto
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/cweill/gotests
go: [ 1.16.x, 1.19.x, 1.20.x ]
steps:

- name: Check out code
uses: actions/checkout@v3

- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}

- name: Check out code
uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/github.com/cweill/gotests

- name: Get Dependencies (github.com/golang.org/x/tools/imports)
run: go get -v ./...

- name: Test
run: |
go test -v ./...
- name: Coverage Dependencies
if: matrix.go == '1.16.x'
run: |
go get github.com/mattn/goveralls
go get -v ./...
go install github.com/mattn/goveralls@latest
- name: Coverage Reporting Generation
if: matrix.go == '1.16.x'
Expand All @@ -54,6 +41,6 @@ jobs:
- name: Coverage - Sending Report to Coveral
if: matrix.go == '1.16.x'
run: $GOPATH/bin/goveralls -coverprofile=coverage.cov -service=github
run: goveralls -coverprofile=coverage.cov -service=github
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The following shows `gotests` in action using the [official Sublime Text 3 plugi

## Installation

__Minimum Go version:__ Go 1.6
__Minimum Go version:__ Go 1.16

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

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/cweill/gotests

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

go 1.6
go 1.16
7 changes: 0 additions & 7 deletions internal/render/README.md

This file was deleted.

Loading

0 comments on commit 1004bf0

Please sign in to comment.