Skip to content

Commit

Permalink
Run unit tests on CI for MacOS
Browse files Browse the repository at this point in the history
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 <pavlenko.maksym@gmail.com>
  • Loading branch information
mxpv committed Mar 25, 2021
1 parent 31a0f92 commit 55450e7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,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
Expand Down

0 comments on commit 55450e7

Please sign in to comment.