From 6bd072943d2868bba4dfbfa82d55406319fb811a Mon Sep 17 00:00:00 2001 From: nickbreen Date: Mon, 4 Sep 2023 21:21:38 +1200 Subject: [PATCH] delimit runuser args and command --- .github/workflows/bazel.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml index 0e4f534..0e99f4a 100644 --- a/.github/workflows/bazel.yml +++ b/.github/workflows/bazel.yml @@ -40,14 +40,14 @@ jobs: path: ${{github.workspace}}/.cache/bazel.disk key: bazel - name: Bazel Build - run: sudo runuser -u runner -g runner -G docker bazel build --config docker hellos tars rpms debs + run: sudo runuser -u runner -g runner -G docker -- bazel build --config docker hellos tars rpms debs - name: Bazel Host Tests - run: sudo runuser -u runner -g runner -G docker bazel test --config docker --strategy=TestRunner=sandboxed host-{hellos,tars}-test # We won't test the RPM and DEB tests on the host as they actually install the package. + run: sudo runuser -u runner -g runner -G docker -- bazel test --config docker --strategy=TestRunner=sandboxed host-{hellos,tars}-test # We won't test the RPM and DEB tests on the host as they actually install the package. - name: Bazel Platform Tests - run: sudo runuser -u runner -g runner -G docker bazel test --config docker --strategy=TestRunner=docker platform-{hello,tar,rpm,deb}-test-suite + run: sudo runuser -u runner -g runner -G docker -- bazel test --config docker --strategy=TestRunner=docker platform-{hello,tar,rpm,deb}-test-suite - name: Work around https://github.com/actions/upload-artifact/issues/92 - run: echo "bazel_out=$(sudo runuser -u runner -g runner -G docker bazel info output_path)" >> $GITHUB_ENV - - run: sudo runuser -u runner -g runner -G docker bazel shutdown + run: echo "bazel_out=$(sudo runuser -u runner -g runner -G docker -- bazel info output_path)" >> $GITHUB_ENV + - run: sudo runuser -u runner -g runner -G docker -- bazel shutdown - uses: actions/upload-artifact@v3 with: name: test-results