Skip to content

Commit

Permalink
ci: add lint tests
Browse files Browse the repository at this point in the history
Add lint tests to CI which runs linting against test image,
and then cp's kernel to create a negative test.

Co-authored-by: Joseph Marrero <[email protected]>
Co-authored-by: Huijing Hei <[email protected]>
Co-authored-by: Yasmin de Souza <[email protected]>
  • Loading branch information
4 people committed Mar 21, 2024
1 parent bae5d07 commit b97d8bd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,31 @@ jobs:
run: sudo tar -C / -xvf bootc.tar.zst
- name: Integration tests
run: bootc internal-tests run-container-integration
- name: lint tests
run: |
set -xeuo pipefail
bootc build-lint
if ["$1" -eq 0]; then
echo "No errors found"
else
echo "Linting failed"
exit 1
fi
cd /usr/lib/modules
kernel=$(ls | tail -n 1)
sudo cp -r $kernel "$kernel-to-delete"
bootc build-lint
if ["$1" -eq 0]; then
echo "No errors found"
exit 1
else
echo "Linting found both kernels"
fi

#clean-up
sudo rm -rf "$kernel-to-delete"


privtest-alongside:
name: "Test install-alongside"
needs: [build-c9s]
Expand Down

0 comments on commit b97d8bd

Please sign in to comment.