Skip to content

Commit 6c0042a

Browse files
authored
Remove OAM and no useful code of github pakcage
Signed-off-by: GitHub <noreply@github.com>
1 parent 7dc1927 commit 6c0042a

File tree

8 files changed

+24
-203
lines changed

8 files changed

+24
-203
lines changed

.github/workflows/ci.yml

+23-16
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
- uses: actions/setup-go@master
1616
with:
1717
go-version: '1.21'
18+
cache: true
19+
cache-dependency-path: go.sum
1820
- name: golangci-lint
1921
uses: golangci/golangci-lint-action@v3
2022
with:
@@ -30,21 +32,26 @@ jobs:
3032
- uses: actions/setup-go@master
3133
with:
3234
go-version: '1.21'
35+
cache: true
36+
cache-dependency-path: go.sum
3337
- name: go mod tidy
3438
run: make tidy
35-
tests:
36-
name: Tests
37-
needs: [tidy]
38-
runs-on: ubuntu-latest
39-
env:
40-
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
41-
steps:
42-
- name: Check out code
43-
uses: actions/checkout@master
44-
with:
45-
fetch-depth: 1
46-
- name: Setup Go
47-
uses: actions/setup-go@master
48-
with:
49-
go-version: 1.21
50-
- run: make test
39+
codecov:
40+
name: codecov
41+
needs: [ tidy ]
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@master
45+
- uses: actions/setup-go@v4
46+
with:
47+
go-version: '1.21'
48+
cache: true
49+
cache-dependency-path: go.sum
50+
- name: test
51+
run: make test
52+
- name: Upload covergae to Codecov
53+
if: github.repository == 'meshery/meshkit'
54+
uses: codecov/codecov-action@v3
55+
with:
56+
files: ./coverage.out
57+
flags: unittests

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ cmd/errorutil/errorutil
2222
**errorutil_analyze_summary.json
2323
**errorutil_errors_export.json
2424
*.DS_Store
25+
coverage.txt

models/oam/core/v1alpha1/application_configuration.go

-47
This file was deleted.

utils/github/components_valero.json

-1
This file was deleted.

utils/github/error.go

-14
This file was deleted.

utils/github/package.go

-56
This file was deleted.

utils/github/package_test.go

-43
This file was deleted.

utils/manifests/getComponents.go

-26
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,16 @@
11
package manifests
22

33
import (
4-
"context"
54
"encoding/json"
65
"fmt"
76
"io"
87
"strings"
98

109
"gopkg.in/yaml.v3"
1110

12-
"github.com/layer5io/meshkit/utils"
1311
k8s "github.com/layer5io/meshkit/utils/kubernetes"
1412
)
1513

16-
func GetFromManifest(ctx context.Context, url string, resource int, cfg Config) (*Component, error) {
17-
manifest, err := utils.ReadFileSource(url)
18-
if err != nil {
19-
return nil, err
20-
}
21-
comp, err := GenerateComponents(ctx, manifest, resource, cfg)
22-
if err != nil {
23-
return nil, err
24-
}
25-
return comp, nil
26-
}
27-
28-
func GetFromHelm(ctx context.Context, url string, resource int, cfg Config) (*Component, error) {
29-
manifest, err := k8s.GetManifestsFromHelm(url)
30-
if err != nil {
31-
return nil, err
32-
}
33-
comp, err := GenerateComponents(ctx, manifest, resource, cfg)
34-
if err != nil {
35-
return nil, err
36-
}
37-
return comp, nil
38-
}
39-
4014
func GetCrdsFromHelm(url string) ([]string, error) {
4115
manifest, err := k8s.GetManifestsFromHelm(url)
4216
if err != nil {

0 commit comments

Comments
 (0)