Skip to content

Commit

Permalink
CI: resolve Go path before sudoing
Browse files Browse the repository at this point in the history
See actions/setup-go issue 104

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Mar 30, 2022
1 parent 6fdff72 commit 229d93a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -76,7 +76,7 @@ jobs:
if: startsWith(matrix.os, 'ubuntu')
run: |
make test
sudo make root-test
make root-test
working-directory: src/github.com/containerd/continuity

- name: Non-Linux Tests
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -66,7 +66,7 @@ test:

root-test:
@echo "+ $@"
@go test ${TEST_REQUIRES_ROOT_PACKAGES} -test.root
@go test -exec sudo ${TEST_REQUIRES_ROOT_PACKAGES} -test.root

test-compile:
@echo "+ $@"
Expand Down

0 comments on commit 229d93a

Please sign in to comment.