Skip to content

Commit 55450e7

Browse files
committed
Run unit tests on CI for MacOS
Though we don't officially support Apple platform, we should at least run unit tests to make sure things are not broken. Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent 31a0f92 commit 55450e7

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,33 @@ jobs:
375375
df
376376
losetup -l
377377
378+
tests-mac-os:
379+
name: MacOS unit tests
380+
runs-on: macos-10.15
381+
timeout-minutes: 10
382+
needs: [project, linters, protos, man]
383+
384+
steps:
385+
- uses: actions/setup-go@v2
386+
with:
387+
go-version: '1.16.2'
388+
389+
- uses: actions/checkout@v2
390+
with:
391+
path: src/github.com/containerd/containerd
392+
393+
- name: Set env
394+
run: |
395+
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
396+
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
397+
398+
- name: Tests
399+
env:
400+
GOPROXY: direct
401+
run: |
402+
make test
403+
working-directory: src/github.com/containerd/containerd
404+
378405
cgroup2:
379406
name: CGroupsV2 and SELinux Integration
380407
# nested virtualization is only available on macOS hosts

0 commit comments

Comments
 (0)