Merge pull request #5264 from mxpv/tests

Run unit tests on CI for MacOS
This commit is contained in:
Derek McGowan
2021-03-25 09:46:25 -07:00
committed by GitHub
4 changed files with 42 additions and 1 deletions

View File

@@ -450,6 +450,33 @@ jobs:
df
losetup -l
tests-mac-os:
name: MacOS unit tests
runs-on: macos-10.15
timeout-minutes: 10
needs: [project, linters, protos, man]
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.16.2'
- uses: actions/checkout@v2
with:
path: src/github.com/containerd/containerd
- name: Set env
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Tests
env:
GOPROXY: direct
run: |
make test
working-directory: src/github.com/containerd/containerd
cgroup2:
name: CGroupsV2 and SELinux Integration
# nested virtualization is only available on macOS hosts