Skip to content

Commit 337d3ad

Browse files
dylanratcliffeactions-user
authored andcommitted
CLI Release Automation (#800)
Moved to releasing in CI rather than manually GitOrigin-RevId: 808a8f574708259fc19a086cab80e034486de60c
1 parent a1d3c4c commit 337d3ad

File tree

4 files changed

+24
-250
lines changed

4 files changed

+24
-250
lines changed

.github/workflows/e2e.yaml

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

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,33 @@ on:
55
tags:
66
- 'v*'
77
jobs:
8+
test:
9+
name: Run Tests
10+
runs-on: depot-ubuntu-22.04-4
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
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
24+
25+
- name: Go Test
26+
run: |
27+
go run main.go --version
28+
go test -race -v -timeout 5m github.com/overmindtech/cli github.com/overmindtech/cli/tfutils
29+
830
# Actually release the binaries including signing them
931
release:
1032
runs-on: depot-ubuntu-22.04-32
1133
if: ${{ github.event_name != 'pull_request' }}
34+
needs: test
1235
permissions:
1336
contents: write
1437
packages: write
@@ -57,6 +80,7 @@ jobs:
5780
bump-formula:
5881
runs-on: ubuntu-latest
5982
if: ${{ github.event_name != 'pull_request' }}
83+
needs: test
6084
steps:
6185
- name: Update Homebrew formula
6286
uses: dawidd6/action-homebrew-bump-formula@v4

.github/workflows/test_release.yml

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

.github/workflows/tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ jobs:
44
test:
55
name: Run Tests
66
runs-on: depot-ubuntu-22.04-4
7-
env:
8-
CGO_ENABLED: 0
97

108
steps:
119
- name: Checkout

0 commit comments

Comments
 (0)