Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project import generated by Copybara. #807

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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
Loading