Skip to content

Commit

Permalink
Migrate to GitLab Actions (#1)
Browse files Browse the repository at this point in the history
Migrate to GitLab Actions
  • Loading branch information
blaubaer authored Nov 21, 2020
1 parent c04037d commit 0a0b8ce
Show file tree
Hide file tree
Showing 18 changed files with 119 additions and 442 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
on: [ push, pull_request ]
name: Continuous Integration
jobs:
test:
strategy:
matrix:
go-version: [ 1.15.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v2

- name: Cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install
run: |
go mod download
- name: Packr
run: |
go run github.com/gobuffalo/packr/packr clean
go run github.com/gobuffalo/packr/packr -z -i fallback
- name: Test
run: |
mkdir -p var
go test -v -race -covermode atomic "-coverprofile=var/profile.cov" ./...
51 changes: 0 additions & 51 deletions .gitlab-ci.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .kubor.yml

This file was deleted.

19 changes: 0 additions & 19 deletions Dockerfile

This file was deleted.

2 changes: 2 additions & 0 deletions kubernetes/environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ func Test_Environment_get_with_incluster_succeeds(t *testing.T) {
env := MustNewEnvironment()
env.tokenFile = "resources/serviceaccount_token"
env.rootCAFile = "resources/serviceaccount_ca.crt"
env.namespaceFile = "resources/serviceaccount_namespace"
err := env.Kubeconfig.Set(KubeconfigInCluster)
g.Expect(err).To(BeNil())

Expand All @@ -174,6 +175,7 @@ func Test_Environment_get_with_incluster_succeeds(t *testing.T) {
g.Expect(instance).ToNot(BeNil())
g.Expect(instance.restConfig).NotTo(BeNil())
g.Expect(instance.contextName).To(Equal("incluster"))
g.Expect(env.Namespace).To(Equal("aNamespace"))
}

func Test_Environment_get_with_incluster_without_envVarServicePort_fails(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions kubernetes/resources/serviceaccount_namespace
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aNamespace
66 changes: 0 additions & 66 deletions kubernetes/templates/01-deployment.yml

This file was deleted.

17 changes: 0 additions & 17 deletions kubernetes/templates/02-service.yml

This file was deleted.

114 changes: 0 additions & 114 deletions kuborw

This file was deleted.

Loading

0 comments on commit 0a0b8ce

Please sign in to comment.