Skip to content

Commit bd516d0

Browse files
committed
chore: cleanup
1 parent 11ca47b commit bd516d0

File tree

12 files changed

+242
-1134
lines changed

12 files changed

+242
-1134
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
name: CI
22

33
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
88

99
jobs:
10-
test:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v4
15-
16-
- name: Set up Go
17-
uses: actions/setup-go@v5
18-
with:
19-
go-version: "1.26"
20-
21-
- name: Build
22-
run: go build -v ./...
23-
24-
- name: Test
25-
run: go test -v ./...
26-
27-
- name: Format check
28-
run: |
29-
gofmt -l .
30-
[ -z "$(gofmt -l .)" ]
31-
32-
lint:
33-
runs-on: ubuntu-latest
34-
steps:
35-
- name: Checkout
36-
uses: actions/checkout@v4
37-
38-
- name: Set up Go
39-
uses: actions/setup-go@v5
40-
with:
41-
go-version: "1.26"
42-
43-
- name: golangci-lint
44-
uses: golangci/golangci-lint-action@v6
45-
with:
46-
version: latest
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v6
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v6
18+
with:
19+
go-version: "1.26.0"
20+
21+
- name: Build
22+
run: go build -v ./...
23+
24+
- name: Test
25+
run: go test -v ./...
26+
27+
- name: Format check
28+
run: |
29+
gofmt -l .
30+
[ -z "$(gofmt -l .)" ]
31+
32+
lint:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v6
37+
38+
- name: Set up Go
39+
uses: actions/setup-go@v6
40+
with:
41+
go-version: "1.26.0"
42+
43+
- name: golangci-lint
44+
uses: golangci/golangci-lint-action@v9
45+
with:
46+
version: latest

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818
with:
1919
fetch-depth: 0
2020

2121
- name: Set up Go
22-
uses: actions/setup-go@v5
22+
uses: actions/setup-go@v6
2323
with:
24-
go-version: "1.26"
24+
go-version: "1.26.0"
2525

2626
- name: Run tests
2727
run: go test ./...
2828

2929
- name: Run GoReleaser
30-
uses: goreleaser/goreleaser-action@v6
30+
uses: goreleaser/goreleaser-action@v7
3131
with:
3232
distribution: goreleaser-pro
33-
version: latest
33+
version: "~> v2"
3434
args: release --clean
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
38-
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
38+
TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ brews:
7676
directory: Formula
7777
homepage: 'https://github.com/ofkm/bndry'
7878
description: 'Friendly CLI wrapper for HashiCorp Boundary focused on SSH workflows'
79-
license: 'MIT'
79+
license: 'Apache License 2.0'
8080
test: |
8181
system "#{bin}/bndry --help"
8282
install: |

Justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ fmt:
1616
tidy:
1717
go mod tidy
1818

19+
fix:
20+
go fix ./...
21+
1922
run:
2023
go run ./cmd/bndry

0 commit comments

Comments
 (0)