File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,12 +80,16 @@ jobs:
8080 run : ../project/script/validate/fileheader ../project/
8181 working-directory : src/github.com/containerd/cgroups
8282
83- test-v1 :
84- name : Test cgroups v1
85- runs-on : ubuntu-18.04
83+ test :
84+ name : Test cgroups
8685 timeout-minutes : 15
8786 needs : [project]
8887
88+ strategy :
89+ matrix :
90+ os : [ubuntu-18.04, ubuntu-22.04]
91+
92+ runs-on : ${{ matrix.os }}
8993 steps :
9094 - name : Install Go
9195 uses : actions/setup-go@v2
@@ -103,23 +107,8 @@ jobs:
103107 with :
104108 path : src/github.com/containerd/cgroups
105109
106- - name : Run cgroup v1 tests
107- run : go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
110+ - name : Run cgroup tests
111+ run : |
112+ sudo -E PATH=$PATH GOPATH=$GOPATH \
113+ $(command -v go) test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
108114 working-directory : src/github.com/containerd/cgroups
109-
110- test-v2 :
111- name : Test cgroups v2
112- # nested virtualization is only available on macOS hosts
113- runs-on : macos-10.15
114- timeout-minutes : 20
115- needs : [project]
116-
117- steps :
118- - name : Checkout cgroups
119- uses : actions/checkout@v2
120-
121- - name : Start vagrant
122- run : vagrant up
123-
124- - name : Run cgroups v2 tests
125- run : vagrant ssh default -- sudo -i /test.sh
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments