Skip to content

Commit 476f6df

Browse files
authored
Merge pull request #807 from overmindtech/copybara
Project import generated by Copybara.
2 parents 54ca7ad + 2a927c0 commit 476f6df

File tree

629 files changed

+115398
-326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

629 files changed

+115398
-326
lines changed

.github/actions/go_init/action.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/e2eapply.tape

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Set Width 1920
44
Set Height 1080
55

66
Set FontSize 12
7+
Set CursorBlink false
78

89
Hide
910
Type "export PATH=$PWD:$PATH"

.github/e2eplan.tape

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Set Width 1920
44
Set Height 1080
55

66
Set FontSize 12
7+
Set CursorBlink false
78

89
Hide
910
Type "export PATH=$PWD:$PATH"

.github/renovate.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/e2e.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@ jobs:
3939
with:
4040
fetch-depth: 0
4141

42-
- name: Go Init
43-
uses: ./.github/actions/go_init
42+
- name: Set up Go
43+
uses: actions/setup-go@v5
44+
with:
45+
go-version: 1.x
46+
check-latest: true
47+
cache: true
4448

4549
- name: Build the binary
4650
run: |
@@ -120,8 +124,12 @@ jobs:
120124
with:
121125
fetch-depth: 0
122126

123-
- name: Go Init
124-
uses: ./.github/actions/go_init
127+
- name: Set up Go
128+
uses: actions/setup-go@v5
129+
with:
130+
go-version: 1.x
131+
check-latest: true
132+
cache: true
125133

126134
- name: Build the binary
127135
run: |

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121

22-
- name: Go Init
23-
uses: ./.github/actions/go_init
22+
- name: Set up Go
23+
uses: actions/setup-go@v5
2424
with:
25+
go-version: 1.x
26+
check-latest: true
2527
cache: true
2628

27-
- run: go run main.go --version
28-
2929
- name: Run GoReleaser (publish)
3030
uses: goreleaser/goreleaser-action@v6
3131
with:
@@ -71,4 +71,4 @@ jobs:
7171
livecheck: true
7272
user_name: CLI Release Bot
7373
user_email: [email protected]
74-
74+

.github/workflows/test_release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717

18-
- name: Go Init
19-
uses: ./.github/actions/go_init
20-
21-
- run: go run main.go --version
18+
- name: Set up Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version: 1.x
22+
check-latest: true
23+
cache: true
2224

2325
- name: Run GoReleaser (dry run)
2426
uses: goreleaser/goreleaser-action@v6

.github/workflows/tests.yml

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,14 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515

16-
- name: Go Init
17-
uses: ./.github/actions/go_init
18-
19-
- name: Get dependencies
20-
run: |
21-
go get -v -t -d ./...
16+
- name: Set up Go
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version: 1.x
20+
check-latest: true
21+
cache: true
2222

2323
- name: Go Test
2424
run: |
2525
go run main.go --version
26-
go test -v -timeout 5m ./...
27-
28-
golangci:
29-
name: lint
30-
runs-on: depot-ubuntu-22.04-4
31-
32-
steps:
33-
- name: Checkout
34-
uses: actions/checkout@v4
35-
with:
36-
fetch-depth: 0
37-
38-
- name: Go Init
39-
uses: ./.github/actions/go_init
40-
41-
# get .golangci.yml from github.com/overmindtech/golangci-lint_config
42-
- name: Get .golangci.yml from github.com/overmindtech/golangci-lint_configs
43-
run: |
44-
curl -sfL https://raw.githubusercontent.com/overmindtech/golangci-lint_config/main/.golangci.yml -o .golangci.yml
45-
46-
- name: golangci-lint
47-
uses: golangci/golangci-lint-action@v6
48-
with:
49-
version: v1.60.1
50-
args: --timeout 3m
51-
skip-pkg-cache: true # golangci-lint-action caching conflicts with the setup-go cache and `go get` above. See https://github.com/golangci/golangci-lint-action/issues/23
26+
go test -v -timeout 5m github.com/overmindtech/cli github.com/overmindtech/cli/tfutils

.goreleaser.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,16 @@ builds:
88
goos:
99
- linux
1010
- windows
11-
# Set the version where the binary will look it up (ServiceVersion) without ruining the flags goreleaser is setting
1211
ldflags:
13-
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser -X github.com/overmindtech/cli/tracing.ServiceVersion={{.Version}}
12+
- -s -w -X github.com/overmindtech/cli/tracing.version={{.Version}}
1413
- binary: overmind
1514
id: overmind-macos
1615
env:
1716
- CGO_ENABLED=0
1817
goos:
1918
- darwin
2019
ldflags:
21-
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser -X github.com/overmindtech/cli/tracing.ServiceVersion={{.Version}}
20+
- -s -w -X github.com/overmindtech/cli/tracing.version={{.Version}}
2221

2322
# For now we are going to disable signing MacOS packages. This works on Dylan's
2423
# person laptop, but we haven't worked out a way to get this set up in a github

.terraform.lock.hcl

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)