Skip to content

Commit

Permalink
delimit runuser args and command
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbreen committed Sep 4, 2023
1 parent e199a1c commit 6bd0729
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bd0729

Please sign in to comment.