Skip to content

Commit

Permalink
Use int128/go-workflows (#350)
Browse files Browse the repository at this point in the history
* Use go-workflows

* Generated by GitHub Actions (go / fmt)

https://github.com/int128/kauthproxy/actions/runs/4870330144

---------

Co-authored-by: update-generated-files-action <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
int128 and github-actions[bot] authored May 3, 2023
1 parent 4ae36f5 commit a02f217
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 34 deletions.
32 changes: 5 additions & 27 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,11 @@ on:
- go.*

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.20.3
cache: true
- uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
args: --timeout=3m

tidy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-go@v3
with:
go-version: 1.20.3
cache: true
- run: go mod tidy
- uses: int128/update-generated-files-action@v2
check:
uses: int128/go-workflows/.github/workflows/check.yaml@v0.1.0
with:
go-version: 1.20.3
golangci-lint-version: v1.52.2

test:
runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions pkg/authproxy/auth_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ type runOption struct {

// run runs a port forwarder and reverse proxy, and waits for them, as follows:
//
// 1. Run a port forwarder.
// 2. When the port forwarder is ready, run a reverse proxy.
// 3. When the reverse proxy is ready, open the browser (only first time).
// 1. Run a port forwarder.
// 2. When the port forwarder is ready, run a reverse proxy.
// 3. When the reverse proxy is ready, open the browser (only first time).
//
// When the context is canceled,
//
// - Shut down the port forwarder.
// - Shut down the reverse proxy.
// - Shut down the port forwarder.
// - Shut down the reverse proxy.
//
// This never returns nil.
// It returns an error which wraps context.Canceled if the context is canceled.
Expand Down
3 changes: 2 additions & 1 deletion pkg/di/di.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build wireinject
//go:build wireinject
// +build wireinject

// Package di provides dependency injection.
package di
Expand Down
3 changes: 2 additions & 1 deletion pkg/di/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a02f217

Please sign in to comment.