Skip to content

Commit

Permalink
workflows: Run job in the CI container directly
Browse files Browse the repository at this point in the history
Instead of invoking docker ourselves, set the github job to run in the
CI container directly.

This also adds a workaround for:
actions/runner#2033

Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
  • Loading branch information
ansasaki committed Dec 9, 2024
1 parent afa60ab commit de7c314
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ jobs:
tests:
name: Fedora tests
runs-on: ubuntu-latest
container:
image: quay.io/keylime/keylime-ci:latest
steps:
- uses: actions/checkout@v4
- name: Set git safe.directory for the working directory
run : git config --system --add safe.directory "$PWD"
- name: Run tests
run: docker run --security-opt seccomp=tests/seccomp-profile.json -v $(pwd):/tmp/code_under_test -w /tmp/code_under_test quay.io/keylime/keylime-ci:latest dbus-run-session -- /tmp/code_under_test/tests/run.sh
run: bash tests/run.sh
- uses: actions/upload-artifact@v4
with:
name: tarpaulin-report
Expand Down

0 comments on commit de7c314

Please sign in to comment.