Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
acj committed Jan 10, 2024
1 parent a73ea42 commit 6226d08
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@ jobs:
with:
pre-run: touch pre-run
- run: if [ ! -f pre-run ]; then echo "pre-run should exist"; exit 1; fi
- run: if [ "$(id -u)" = "0" ]; then echo "current user should not be root"; exit 1; fi

pre-run-non-root:
name: Pre-run step executes as a user other than root
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: ./
with:
pre-run: if [ "$(id -u)" = "0" ]; then echo "current user should not be root"; exit 1; fi

run-in-vm:
name: Run-in-vm step executes
runs-on: ubuntu-22.04
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ runs:
# Disable segmentation offload as workaround for https://github.com/firecracker-microvm/firecracker/issues/3905
sudo ethtool -K "$TAP_DEV" tso off
- name: Run user scripts
shell: bash -e {0}
run: |
pre_run_script=$(mktemp)
run_in_vm_script=$(mktemp)
post_run_script=$(mktemp)
Expand Down

0 comments on commit 6226d08

Please sign in to comment.