-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add running and packaging tests. Fix problems found when adding tests Signed-off-by: Corentin Labbe <[email protected]>
- Loading branch information
Showing
6 changed files
with
102 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
# yamllint disable rule:line-length | ||
name: tests yasat | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
test-ubuntu: | ||
runs-on: ubuntu-latest | ||
name: test on ubuntu | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: update pkglist | ||
run: sudo apt-get update | ||
- name: install some tested packages | ||
run: sudo apt-get -y install tomcat9 | ||
- name: Run yasat | ||
run: | | ||
./yasat | ||
./yasat -1 ntp | ||
./yasat -f -1 tomcat | ||
ls -l /home/runner/.yasat//yasat.report | ||
test-bashishms: | ||
runs-on: ubuntu-latest | ||
name: Check bashisms | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: update pkglist | ||
run: sudo apt-get update | ||
- name: install checkbashisms | ||
run: sudo apt-get -y install devscripts | ||
- name: Run checkbashisms | ||
run: checkbashisms yasat common plugins/*test | ||
ubuntu-pkg: | ||
runs-on: ubuntu-latest | ||
name: build ubuntu package | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: update pkglist | ||
run: sudo apt-get update | ||
- name: Install packages | ||
run: sudo apt-get -y install devscripts gnupg debhelper-compat | ||
- name: create orig targz | ||
run: cd .. && tar czf yasat_0-1.orig.tar.gz yasat | ||
- name: Run ls | ||
run: ls -l | ||
- name: Run debuild | ||
run: debuild -i -us -uc -b --lintian-opts --profile debian | ||
- name: Run debuild help | ||
run: debuild --help | ||
debian-pkg: | ||
runs-on: ubuntu-latest | ||
name: build debian package | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: update pkglist | ||
run: sudo apt-get update | ||
- name: Install packages | ||
run: sudo apt-get -y install debootstrap | ||
- name: Create a bookworm | ||
run: sudo debootstrap bookworm /root/bookworm | ||
- name: copy yasat source | ||
run: sudo cp -a yasat /root/bookworm/ | ||
- name: Install update pkg in chroot | ||
run: sudo chroot /root/bookworm apt-get update | ||
- name: Install update pkg in chroot | ||
run: sudo chroot /root/bookworm apt-get -y install devscripts gnupg debhelper-compat | ||
- name: Run debuild | ||
run: sudo chroot /root/bookworm /bin/sh -c 'cd /yasat && debuild -i -us -uc -b' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5 | ||
7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters