-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Barrera, Angel
authored and
Barrera, Angel
committed
Feb 9, 2022
1 parent
c0efafd
commit ead24aa
Showing
11 changed files
with
314 additions
and
196 deletions.
There are no files selected for viewing
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,32 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Upload assets | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: hasselhoffme | ||
path: dist/* |
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 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 |
---|---|---|
@@ -1,25 +1,4 @@ | ||
.PHONY: test lint check cover build | ||
#.PHONY: release | ||
|
||
test: ## Run tests | ||
go test -race ./... -timeout=5m | ||
|
||
lint: ## Run linters. Use make install-linters first. | ||
go get -u golang.org/x/lint/golint | ||
golint --set_exit_status ./... | ||
go vet -all ./... | ||
|
||
check: lint test ## Run tests and linters | ||
|
||
cover: ## Runs tests on ./cmd/ with HTML code coverage | ||
go test -race -cover -coverprofile=cover.out -coverpkg=github.com/angelbarrera92/hasselhoffme/... ./... | ||
go tool cover -html=cover.out | ||
.PHONY: build | ||
|
||
build: ## Builds the binary | ||
export GO111MODULE=on && \ | ||
go mod download && \ | ||
go build -v ./cmd/hasselhoffme | ||
|
||
## TODO: Add support for goreleaser | ||
#release: check ## Use GoReleaser to build, package and release | ||
# goreleaser --rm-dist | ||
go mod download && go mod tidy && go build -v ./cmd/hasselhoffme |
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,18 +1,9 @@ | ||
module github.com/angelbarrera92/hasselhoffme | ||
|
||
go 1.14 | ||
go 1.16 | ||
|
||
require ( | ||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 // indirect | ||
github.com/jtolds/gls v4.2.1+incompatible // indirect | ||
github.com/reujab/wallpaper v0.0.0-20200229074030-4e1aa3ff8284 | ||
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d // indirect | ||
github.com/smartystreets/goconvey v0.0.0-20180222194500-ef6db91d284a // indirect | ||
github.com/reujab/wallpaper v0.0.0-20210630195606-5f9f655b3740 | ||
github.com/zyxar/image2ascii v0.0.0-20180912034614-460a04e371ae | ||
golang.org/x/image v0.0.0-20180926015637-991ec62608f3 // indirect | ||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3 // indirect | ||
golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc | ||
golang.org/x/tools v0.0.0-20181029181417-2d2de6298155 // indirect | ||
gopkg.in/ini.v1 v1.39.0 // indirect | ||
gopkg.in/yaml.v2 v2.2.1 // indirect | ||
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd | ||
) |
Oops, something went wrong.