Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/github_actions/codecov/codecov-…
Browse files Browse the repository at this point in the history
…action-4
  • Loading branch information
JacobOaks authored Apr 29, 2024
2 parents 33f6b6c + 4dcde33 commit 8e51ce3
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
go-version: 1.21.x
cache: false # managed by golangci-lint

- uses: golangci/golangci-lint-action@v3
- uses: golangci/golangci-lint-action@v5
name: Install golangci-lint
with:
version: latest
args: --version # make lint will run the linter
args: --help # make lint will run the linter

- run: make lint
name: Lint
Expand Down
47 changes: 47 additions & 0 deletions handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ func TestPackageShouldExist(t *testing.T) {
<head>
<meta name="go-import" content="go.uber.org/yarpc git https://github.com/yarpc/yarpc-go">
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/go.uber.org/yarpc">
<style>
@media (prefers-color-scheme: dark) {
body { background-color: #333; color: #ddd; }
a { color: #ddd; }
a:visited { color: #bbb; }
}
</style>
</head>
<body>
Nothing to see here. Please <a href="https://pkg.go.dev/go.uber.org/yarpc">move along</a>.
Expand All @@ -77,6 +84,11 @@ func TestNonExistentPackageShould404(t *testing.T) {
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" />
<style>
@media (prefers-color-scheme: dark) {
body { background-color: #333; color: #ddd; }
}
</style>
</head>
<body>
<div class="container">
Expand All @@ -95,6 +107,13 @@ func TestTrailingSlash(t *testing.T) {
<head>
<meta name="go-import" content="go.uber.org/yarpc git https://github.com/yarpc/yarpc-go">
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/go.uber.org/yarpc/">
<style>
@media (prefers-color-scheme: dark) {
body { background-color: #333; color: #ddd; }
a { color: #ddd; }
a:visited { color: #bbb; }
}
</style>
</head>
<body>
Nothing to see here. Please <a href="https://pkg.go.dev/go.uber.org/yarpc/">move along</a>.
Expand All @@ -111,6 +130,13 @@ func TestDeepImports(t *testing.T) {
<head>
<meta name="go-import" content="go.uber.org/yarpc git https://github.com/yarpc/yarpc-go">
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/go.uber.org/yarpc/heeheehee">
<style>
@media (prefers-color-scheme: dark) {
body { background-color: #333; color: #ddd; }
a { color: #ddd; }
a:visited { color: #bbb; }
}
</style>
</head>
<body>
Nothing to see here. Please <a href="https://pkg.go.dev/go.uber.org/yarpc/heeheehee">move along</a>.
Expand All @@ -125,6 +151,13 @@ func TestDeepImports(t *testing.T) {
<head>
<meta name="go-import" content="go.uber.org/yarpc git https://github.com/yarpc/yarpc-go">
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/go.uber.org/yarpc/heehee/hawhaw">
<style>
@media (prefers-color-scheme: dark) {
body { background-color: #333; color: #ddd; }
a { color: #ddd; }
a:visited { color: #bbb; }
}
</style>
</head>
<body>
Nothing to see here. Please <a href="https://pkg.go.dev/go.uber.org/yarpc/heehee/hawhaw">move along</a>.
Expand All @@ -141,6 +174,13 @@ func TestPackageLevelURL(t *testing.T) {
<head>
<meta name="go-import" content="go.uberalt.org/zap git https://github.com/uber-go/zap">
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/go.uberalt.org/zap">
<style>
@media (prefers-color-scheme: dark) {
body { background-color: #333; color: #ddd; }
a { color: #ddd; }
a:visited { color: #bbb; }
}
</style>
</head>
<body>
Nothing to see here. Please <a href="https://pkg.go.dev/go.uberalt.org/zap">move along</a>.
Expand Down Expand Up @@ -312,6 +352,13 @@ func TestCustomTemplates(t *testing.T) {
<head>
<meta name="go-import" content="go.uberalt.org/zap git https://github.com/uber-go/zap">
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/go.uberalt.org/zap">
<style>
@media (prefers-color-scheme: dark) {
body { background-color: #333; color: #ddd; }
a { color: #ddd; }
a:visited { color: #bbb; }
}
</style>
</head>
<body>
Nothing to see here. Please <a href="https://pkg.go.dev/go.uberalt.org/zap">move along</a>.
Expand Down
5 changes: 5 additions & 0 deletions templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" />
<style>
@media (prefers-color-scheme: dark) {
body { background-color: #333; color: #ddd; }
}
</style>
</head>
<body>
<div class="container">
Expand Down
8 changes: 8 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
.table-header { display: block; }
.inline-header { display: none; }
}

@media (prefers-color-scheme: dark) {
body { background-color: #333; color: #ddd; }
a { color: #ddd; }
a:visited { color: #bbb; }
.description { color: #bbb; }
.separator { border-color: #666; }
}
</style>
<body>
<div class="container">
Expand Down
7 changes: 7 additions & 0 deletions templates/package.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
<head>
<meta name="go-import" content="{{ .ModulePath }} {{ .VCS }} https://{{ .RepoURL }}">
<meta http-equiv="refresh" content="0; url={{ .DocURL }}">
<style>
@media (prefers-color-scheme: dark) {
body { background-color: #333; color: #ddd; }
a { color: #ddd; }
a:visited { color: #bbb; }
}
</style>
</head>
<body>
Nothing to see here. Please <a href="{{ .DocURL }}">move along</a>.
Expand Down

0 comments on commit 8e51ce3

Please sign in to comment.