|
|
@@ -59,8 +59,8 @@ jobs:
|
|
|
- name: Build packages
|
|
|
run: make -f builder.Makefile cross
|
|
|
|
|
|
- build:
|
|
|
- name: Build
|
|
|
+ build-plugin:
|
|
|
+ name: Build and tests in plugin mode
|
|
|
runs-on: ubuntu-latest
|
|
|
env:
|
|
|
GO111MODULE: "on"
|
|
|
@@ -71,10 +71,6 @@ jobs:
|
|
|
go-version: 1.17
|
|
|
id: go
|
|
|
|
|
|
- - name: Set up gosum
|
|
|
- run: |
|
|
|
- go get -u gotest.tools/gotestsum
|
|
|
-
|
|
|
- name: Setup docker CLI
|
|
|
run: |
|
|
|
curl https://download.docker.com/linux/static/stable/x86_64/docker-20.10.3.tgz | tar xz
|
|
|
@@ -89,8 +85,6 @@ jobs:
|
|
|
key: go-${{ hashFiles('**/go.sum') }}
|
|
|
|
|
|
- name: Test
|
|
|
- env:
|
|
|
- BUILD_TAGS: kube
|
|
|
run: make -f builder.Makefile test
|
|
|
|
|
|
- name: Build for local E2E
|
|
|
@@ -98,5 +92,38 @@ jobs:
|
|
|
BUILD_TAGS: e2e
|
|
|
run: make -f builder.Makefile compose-plugin
|
|
|
|
|
|
- - name: E2E Test
|
|
|
+ - name: E2E Test in plugin mode
|
|
|
run: make e2e-compose
|
|
|
+
|
|
|
+ build-standalone:
|
|
|
+ name: Build and tests in standalone mode
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ env:
|
|
|
+ GO111MODULE: "on"
|
|
|
+ steps:
|
|
|
+ - name: Set up Go 1.17
|
|
|
+ uses: actions/setup-go@v2
|
|
|
+ with:
|
|
|
+ go-version: 1.17
|
|
|
+ id: go
|
|
|
+
|
|
|
+ - name: Setup docker CLI
|
|
|
+ run: |
|
|
|
+ curl https://download.docker.com/linux/static/stable/x86_64/docker-20.10.3.tgz | tar xz
|
|
|
+ sudo cp ./docker/docker /usr/bin/ && rm -rf docker && docker version
|
|
|
+
|
|
|
+ - name: Checkout code into the Go module directory
|
|
|
+ uses: actions/checkout@v2
|
|
|
+
|
|
|
+ - uses: actions/cache@v2
|
|
|
+ with:
|
|
|
+ path: ~/go/pkg/mod
|
|
|
+ key: go-${{ hashFiles('**/go.sum') }}
|
|
|
+
|
|
|
+ - name: Build for local E2E
|
|
|
+ env:
|
|
|
+ BUILD_TAGS: e2e
|
|
|
+ run: make -f builder.Makefile compose-plugin
|
|
|
+
|
|
|
+ - name: E2E Test in standalone mode
|
|
|
+ run: make e2e-compose-standalone
|