Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: format and renaming #66

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.22.4"
go-version: "1.23.2"
- name: Install Task
uses: arduino/setup-task@v2
- name: Install dependencies
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Release

on:
workflow_dispatch:
push:
Expand All @@ -9,22 +11,16 @@ permissions:

jobs:
build:
name: GoReleaser Build
name: Release
runs-on: ubuntu-latest

steps:
- name: Check out code into the Go module directory
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set Up Go
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.x"
id: go

- name: run GoReleaser
go-version: "1.23.2"
- name: Release
uses: goreleaser/goreleaser-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dist/
.task/
# VS Code
.vscode/
# Binaries
up
1 change: 0 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,3 @@ changelog:
exclude:
- "^docs:"
- "^test:"

13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ Troubleshoot problems with your Internet connection based on different

## Install

Binaries for all platforms are provided in the [releases](https://github.com/jesusprubio/up/releases) section.
### Binary Release

Direct install with go:
You can manually download a binary release for Linux, OSX, Windows or FreeBSD
from the [releases](https://github.com/jesusprubio/up/releases) page.

### Go

Please notice `latest` will install the dev version.

```sh
go install -ldflags="-s -w" -v github.com/jesusprubio/up@latest
Expand All @@ -28,10 +33,6 @@ against a randomly selected [public server](internal/servers.go) for each one.
up
```

## License

This project is under the MIT License. See the [LICENSE](LICENSE) file for the full text.

[doc-img]: https://pkg.go.dev/badge/github.com/jesusprubio/up
[doc]: https://pkg.go.dev/github.com/jesusprubio/up
[ci-img]: https://github.com/jesusprubio/up/workflows/CI/badge.svg
Expand Down
2 changes: 1 addition & 1 deletion internal/probe_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestProbeValidate(t *testing.T) {
})
}

func TestProbeRun(t *testing.T) {
func TestProbeDo(t *testing.T) {
t.Run("returns an error if the setup is invalid", func(t *testing.T) {
p := Probe{}
err := p.Do(context.Background())
Expand Down