Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 0a4fa576a2beba3ab15e8942ed9b36df1937f97c
  • Loading branch information
Copybara committed Feb 6, 2025
1 parent b4cb1a5 commit 11eb896
Show file tree
Hide file tree
Showing 629 changed files with 115,398 additions and 326 deletions.
28 changes: 0 additions & 28 deletions .github/actions/go_init/action.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/e2eapply.tape
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Set Width 1920
Set Height 1080

Set FontSize 12
Set CursorBlink false

Hide
Type "export PATH=$PWD:$PATH"
Expand Down
1 change: 1 addition & 0 deletions .github/e2eplan.tape
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Set Width 1920
Set Height 1080

Set FontSize 12
Set CursorBlink false

Hide
Type "export PATH=$PWD:$PATH"
Expand Down
6 changes: 0 additions & 6 deletions .github/renovate.json

This file was deleted.

16 changes: 12 additions & 4 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ jobs:
with:
fetch-depth: 0

- name: Go Init
uses: ./.github/actions/go_init
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.x
check-latest: true
cache: true

- name: Build the binary
run: |
Expand Down Expand Up @@ -120,8 +124,12 @@ jobs:
with:
fetch-depth: 0

- name: Go Init
uses: ./.github/actions/go_init
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.x
check-latest: true
cache: true

- name: Build the binary
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
with:
fetch-depth: 0

- name: Go Init
uses: ./.github/actions/go_init
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.x
check-latest: true
cache: true

- run: go run main.go --version

- name: Run GoReleaser (publish)
uses: goreleaser/goreleaser-action@v6
with:
Expand Down Expand Up @@ -71,4 +71,4 @@ jobs:
livecheck: true
user_name: CLI Release Bot
user_email: [email protected]

10 changes: 6 additions & 4 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ jobs:
with:
fetch-depth: 0

- name: Go Init
uses: ./.github/actions/go_init

- run: go run main.go --version
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.x
check-latest: true
cache: true

- name: Run GoReleaser (dry run)
uses: goreleaser/goreleaser-action@v6
Expand Down
39 changes: 7 additions & 32 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,14 @@ jobs:
with:
fetch-depth: 0

- name: Go Init
uses: ./.github/actions/go_init

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.x
check-latest: true
cache: true

- name: Go Test
run: |
go run main.go --version
go test -v -timeout 5m ./...
golangci:
name: lint
runs-on: depot-ubuntu-22.04-4

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Go Init
uses: ./.github/actions/go_init

# get .golangci.yml from github.com/overmindtech/golangci-lint_config
- name: Get .golangci.yml from github.com/overmindtech/golangci-lint_configs
run: |
curl -sfL https://raw.githubusercontent.com/overmindtech/golangci-lint_config/main/.golangci.yml -o .golangci.yml
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60.1
args: --timeout 3m
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
go test -v -timeout 5m github.com/overmindtech/cli github.com/overmindtech/cli/tfutils
5 changes: 2 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ builds:
goos:
- linux
- windows
# Set the version where the binary will look it up (ServiceVersion) without ruining the flags goreleaser is setting
ldflags:
- -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}}
- -s -w -X github.com/overmindtech/cli/tracing.version={{.Version}}
- binary: overmind
id: overmind-macos
env:
- CGO_ENABLED=0
goos:
- darwin
ldflags:
- -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}}
- -s -w -X github.com/overmindtech/cli/tracing.version={{.Version}}

# For now we are going to disable signing MacOS packages. This works on Dylan's
# person laptop, but we haven't worked out a way to get this set up in a github
Expand Down
58 changes: 29 additions & 29 deletions .terraform.lock.hcl

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

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ git rebase origin/main
- Compare the changes from the last release to what is in main. For [example](https://github.com/overmindtech/cli/compare/v1.3.2...main). Following [semver](https://semver.org/) choose your new version. And use it to tag a version, and push it.

```shell
git tag v0.0.0
git tag -s v0.0.0
git push origin tag v0.0.0
```

Expand Down
Loading

0 comments on commit 11eb896

Please sign in to comment.