Skip to content

Commit 4299364

Browse files
Moved all modules to src directory
Signed-off-by: Deepanshu Yadav <rohantheyadav@gmail.com>
1 parent 4014e5e commit 4299364

24 files changed

+2871
-2871
lines changed
Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
1-
name: Bug Report
2-
description: Report a bug in ops0
3-
labels: ["☢️ Bug"]
4-
5-
body:
6-
- type: dropdown
7-
id: affected-functionalities
8-
attributes:
9-
label: Which ops0-cli features are the source of the bug?
10-
options:
11-
- operations
12-
- kafka
13-
- aws
14-
- azure
15-
- gcloud
16-
- kubernetes
17-
- system admin
18-
- ansible
19-
- terraform
20-
- helm
21-
- Don't known / other
22-
multiple: true
23-
validations:
24-
required: true
25-
26-
- type: textarea
27-
id: description
28-
attributes:
29-
label: Description
30-
validations:
31-
required: true
32-
33-
- type: input
34-
id: reproduction
35-
attributes:
36-
label: Please provide a link to a minimal reproduction of the bug
37-
38-
- type: textarea
39-
id: exception-or-error
40-
attributes:
41-
label: Please provide the exception or error you saw
42-
render: true
43-
44-
- type: textarea
45-
id: environment
46-
attributes:
47-
label: Please provide the version you discovered this bug in (ops0 --version)
48-
render: true
49-
placeholder: |
50-
ops0 version 0.5.3
51-
commit: ffc6f23652092689526a5487c9974a8dcb429d85
52-
built: 2025-06-27T05:44:02Z
53-
go version: go1.21.13
54-
platform: linux/amd64
55-
56-
- type: textarea
57-
id: other
58-
attributes:
1+
name: Bug Report
2+
description: Report a bug in ops0
3+
labels: ["☢️ Bug"]
4+
5+
body:
6+
- type: dropdown
7+
id: affected-functionalities
8+
attributes:
9+
label: Which ops0-cli features are the source of the bug?
10+
options:
11+
- operations
12+
- kafka
13+
- aws
14+
- azure
15+
- gcloud
16+
- kubernetes
17+
- system admin
18+
- ansible
19+
- terraform
20+
- helm
21+
- Don't known / other
22+
multiple: true
23+
validations:
24+
required: true
25+
26+
- type: textarea
27+
id: description
28+
attributes:
29+
label: Description
30+
validations:
31+
required: true
32+
33+
- type: input
34+
id: reproduction
35+
attributes:
36+
label: Please provide a link to a minimal reproduction of the bug
37+
38+
- type: textarea
39+
id: exception-or-error
40+
attributes:
41+
label: Please provide the exception or error you saw
42+
render: true
43+
44+
- type: textarea
45+
id: environment
46+
attributes:
47+
label: Please provide the version you discovered this bug in (ops0 --version)
48+
render: true
49+
placeholder: |
50+
ops0 version 0.5.3
51+
commit: ffc6f23652092689526a5487c9974a8dcb429d85
52+
built: 2025-06-27T05:44:02Z
53+
go version: go1.21.13
54+
platform: linux/amd64
55+
56+
- type: textarea
57+
id: other
58+
attributes:
5959
label: Anything else?
Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
name: "Feature Request"
2-
description: Suggest a feature for ops0
3-
labels: ["✏️ Feature"]
4-
5-
body:
6-
- type: dropdown
7-
id: affected-packages
8-
attributes:
9-
label: Which ops0 functionalities are relevant/related to the feature request?
10-
options:
11-
- operations
12-
- kafka
13-
- aws
14-
- azure
15-
- gcloud
16-
- kubernetes
17-
- system admin
18-
- ansible
19-
- terraform
20-
- helm
21-
- other
22-
multiple: true
23-
24-
- type: textarea
25-
id: description
26-
attributes:
27-
label: Description
28-
validations:
29-
required: true
30-
31-
- type: textarea
32-
id: proposed-solution
33-
attributes:
34-
label: Proposed solution
35-
validations:
36-
required: true
37-
38-
- type: textarea
39-
id: alternatives-considered
40-
attributes:
41-
label: Alternatives considered
42-
validations:
1+
name: "Feature Request"
2+
description: Suggest a feature for ops0
3+
labels: ["✏️ Feature"]
4+
5+
body:
6+
- type: dropdown
7+
id: affected-packages
8+
attributes:
9+
label: Which ops0 functionalities are relevant/related to the feature request?
10+
options:
11+
- operations
12+
- kafka
13+
- aws
14+
- azure
15+
- gcloud
16+
- kubernetes
17+
- system admin
18+
- ansible
19+
- terraform
20+
- helm
21+
- other
22+
multiple: true
23+
24+
- type: textarea
25+
id: description
26+
attributes:
27+
label: Description
28+
validations:
29+
required: true
30+
31+
- type: textarea
32+
id: proposed-solution
33+
attributes:
34+
label: Proposed solution
35+
validations:
36+
required: true
37+
38+
- type: textarea
39+
id: alternatives-considered
40+
attributes:
41+
label: Alternatives considered
42+
validations:
4343
required: true

.github/workflows/release.yaml

Lines changed: 95 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,96 @@
1-
# .github/workflows/release.yml
2-
name: Release
3-
4-
on:
5-
push:
6-
tags:
7-
- 'v*.*.*' # Only trigger on version tags like v1.0.0, v0.1.2, etc.
8-
9-
permissions:
10-
contents: write # Required for creating releases
11-
packages: write # Required for pushing to GitHub packages (optional)
12-
13-
jobs:
14-
goreleaser:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v4
19-
with:
20-
fetch-depth: 0 # Full history for changelog generation
21-
22-
- name: Set up Go
23-
uses: actions/setup-go@v4
24-
with:
25-
go-version: '1.21'
26-
27-
- name: Run tests
28-
run: go test -v ./...
29-
30-
- name: Run GoReleaser
31-
uses: goreleaser/goreleaser-action@v5
32-
with:
33-
distribution: goreleaser
34-
version: v1.26.2
35-
args: release --clean
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
39-
---
40-
# .github/workflows/test.yml
41-
name: Test
42-
43-
on:
44-
push:
45-
branches: [ main, develop ]
46-
pull_request:
47-
branches: [ main ]
48-
49-
jobs:
50-
test:
51-
strategy:
52-
matrix:
53-
os: [ubuntu-latest, macos-latest, windows-latest]
54-
go-version: ['1.20', '1.21']
55-
56-
runs-on: ${{ matrix.os }}
57-
58-
steps:
59-
- name: Checkout code
60-
uses: actions/checkout@v4
61-
62-
- name: Set up Go
63-
uses: actions/setup-go@v4
64-
with:
65-
go-version: ${{ matrix.go-version }}
66-
67-
- name: Get dependencies
68-
run: go mod download
69-
70-
- name: Run tests
71-
run: go test -v ./...
72-
73-
- name: Build
74-
run: go build -v ./...
75-
76-
- name: Test CLI execution
77-
run: |
78-
go build -o ops0 .
79-
# Test that the binary runs (will show usage since no args)
80-
./ops0 || true # Allow failure since we expect usage error
81-
82-
lint:
83-
runs-on: ubuntu-latest
84-
steps:
85-
- name: Checkout code
86-
uses: actions/checkout@v4
87-
88-
- name: Set up Go
89-
uses: actions/setup-go@v4
90-
with:
91-
go-version: '1.21'
92-
93-
- name: golangci-lint
94-
uses: golangci/golangci-lint-action@v3
95-
with:
1+
# .github/workflows/release.yml
2+
name: Release
3+
4+
on:
5+
push:
6+
tags:
7+
- 'v*.*.*' # Only trigger on version tags like v1.0.0, v0.1.2, etc.
8+
9+
permissions:
10+
contents: write # Required for creating releases
11+
packages: write # Required for pushing to GitHub packages (optional)
12+
13+
jobs:
14+
goreleaser:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0 # Full history for changelog generation
21+
22+
- name: Set up Go
23+
uses: actions/setup-go@v4
24+
with:
25+
go-version: '1.21'
26+
27+
- name: Run tests
28+
run: go test -v ./src/...
29+
30+
- name: Run GoReleaser
31+
uses: goreleaser/goreleaser-action@v5
32+
with:
33+
distribution: goreleaser
34+
version: v1.26.2
35+
args: release --clean
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
39+
---
40+
# .github/workflows/test.yml
41+
name: Test
42+
43+
on:
44+
push:
45+
branches: [ main, develop ]
46+
pull_request:
47+
branches: [ main ]
48+
49+
jobs:
50+
test:
51+
strategy:
52+
matrix:
53+
os: [ubuntu-latest, macos-latest, windows-latest]
54+
go-version: ['1.20', '1.21']
55+
56+
runs-on: ${{ matrix.os }}
57+
58+
steps:
59+
- name: Checkout code
60+
uses: actions/checkout@v4
61+
62+
- name: Set up Go
63+
uses: actions/setup-go@v4
64+
with:
65+
go-version: ${{ matrix.go-version }}
66+
67+
- name: Get dependencies
68+
run: go mod download
69+
70+
- name: Run tests
71+
run: go test -v ./src/...
72+
73+
- name: Build
74+
run: go build -v ./src/...
75+
76+
- name: Test CLI execution
77+
run: |
78+
go build -o ops0 ./src/...
79+
# Test that the binary runs (will show usage since no args)
80+
./ops0 || true # Allow failure since we expect usage error
81+
82+
lint:
83+
runs-on: ubuntu-latest
84+
steps:
85+
- name: Checkout code
86+
uses: actions/checkout@v4
87+
88+
- name: Set up Go
89+
uses: actions/setup-go@v4
90+
with:
91+
go-version: '1.21'
92+
93+
- name: golangci-lint
94+
uses: golangci/golangci-lint-action@v3
95+
with:
9696
version: latest

0 commit comments

Comments
 (0)