Skip to content

Commit cbbf257

Browse files
committed
Add Go test runs to GitHub Actions CI
Disable devmapper for now until test issues are fixed. Signed-off-by: Phil Estes <[email protected]> (cherry picked from commit c11472d)
1 parent 19776b7 commit cbbf257

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,15 @@ jobs:
233233
git fetch --tags origin "${SHIM_COMMIT}"
234234
git checkout "${SHIM_COMMIT}"
235235
GO111MODULE=on go build -mod=vendor -o "${bindir}/containerd-shim-runhcs-v1.exe" ./cmd/containerd-shim-runhcs-v1
236+
237+
- name: Tests
238+
shell: bash
239+
env:
240+
CGO_ENABLED: 1
241+
run: |
242+
cd src/github.com/containerd/containerd
243+
mingw32-make.exe test root-test
244+
236245
- name: Integration 1
237246
shell: bash
238247
run: |
@@ -316,6 +325,15 @@ jobs:
316325
sudo make install
317326
working-directory: src/github.com/containerd/containerd
318327

328+
- name: Tests
329+
env:
330+
GOPROXY: direct
331+
SKIPTESTS: github.com/containerd/containerd/snapshots/devmapper
332+
run: |
333+
make test
334+
sudo -E PATH=$PATH GOPATH=$GOPATH GOPROXY=$GOPROXY make root-test
335+
working-directory: src/github.com/containerd/containerd
336+
319337
- name: Integration 1
320338
env:
321339
GOPROXY: direct

0 commit comments

Comments
 (0)