-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from gkarthiks/feat/ci-and-versions
add: version updates & ci tests
- Loading branch information
Showing
4 changed files
with
261 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Test k8s-discovery | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
|
||
- uses: balchua/[email protected] | ||
name: Create a microK8s Cluster | ||
with: | ||
channel: 'latest/stable' | ||
addons: '["dns", "rbac", "storage", "registry", "metrics-server"]' | ||
|
||
- name: Version Checks | ||
run: | | ||
kubectl version --short | ||
git version | ||
sleep 30s | ||
- name: Run Self Test | ||
run: | | ||
go test | ||
- name: Checkout Testing Project and run | ||
run: | | ||
mkdir -p $RUNNER_TEMP/testingproj-k8s-discovery | ||
git clone https://github.com/gkarthiks/testingproj-k8s-discovery.git $RUNNER_TEMP/testingproj-k8s-discovery/ | ||
cd $RUNNER_TEMP/testingproj-k8s-discovery | ||
go mod edit -replace github.com/gkarthiks/k8s-discovery=$GITHUB_WORKSPACE | ||
cat go.mod | ||
go mod tidy | ||
go run main.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
module github.com/gkarthiks/k8s-discovery | ||
|
||
go 1.14 | ||
go 1.16 | ||
|
||
require ( | ||
github.com/fsnotify/fsnotify v1.4.9 // indirect | ||
github.com/sirupsen/logrus v1.7.0 | ||
github.com/stretchr/testify v1.6.1 | ||
k8s.io/client-go v0.21.0 | ||
k8s.io/metrics v0.21.0 | ||
github.com/go-logr/logr v1.1.0 // indirect | ||
github.com/google/go-cmp v0.5.6 // indirect | ||
github.com/google/gofuzz v1.2.0 // indirect | ||
github.com/imdario/mergo v0.3.12 // indirect | ||
github.com/json-iterator/go v1.1.12 // indirect | ||
github.com/sirupsen/logrus v1.8.1 | ||
github.com/stretchr/testify v1.7.0 | ||
golang.org/x/net v0.0.0-20210917221730-978cfadd31cf // indirect | ||
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect | ||
golang.org/x/sys v0.0.0-20210917161153-d61c044b1678 // indirect | ||
golang.org/x/term v0.0.0-20210916214954-140adaaadfaf // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
google.golang.org/appengine v1.6.7 // indirect | ||
google.golang.org/protobuf v1.27.1 // indirect | ||
k8s.io/client-go v0.22.2 | ||
k8s.io/klog/v2 v2.20.0 // indirect | ||
k8s.io/metrics v0.22.2 | ||
k8s.io/utils v0.0.0-20210820185131-d34e5cb4466e // indirect | ||
) |
Oops, something went wrong.