|
| 1 | +--- |
| 2 | +# yamllint disable rule:line-length |
| 3 | +name: tests yasat |
| 4 | + |
| 5 | +on: # yamllint disable-line rule:truthy |
| 6 | + push: |
| 7 | + pull_request: |
| 8 | + |
| 9 | +jobs: |
| 10 | + test-ubuntu: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + name: test on ubuntu |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v4 |
| 15 | + - name: update pkglist |
| 16 | + run: sudo apt-get update |
| 17 | + - name: install some tested packages |
| 18 | + run: sudo apt-get -y install tomcat9 |
| 19 | + - name: Run tests |
| 20 | + run: | |
| 21 | + make test |
| 22 | + ./tests/test.test -d |
| 23 | + - name: Run yasat |
| 24 | + run: | |
| 25 | + ./yasat |
| 26 | + ./yasat -1 ntp |
| 27 | + ./yasat -1 cups |
| 28 | + ./yasat -1 classique |
| 29 | + ls -l /home/runner/.yasat//yasat.report |
| 30 | + test-bashishms: |
| 31 | + runs-on: ubuntu-latest |
| 32 | + name: Check bashisms |
| 33 | + steps: |
| 34 | + - uses: actions/checkout@v4 |
| 35 | + - name: update pkglist |
| 36 | + run: sudo apt-get update |
| 37 | + - name: install checkbashisms |
| 38 | + run: sudo apt-get -y install devscripts |
| 39 | + - name: Run checkbashisms |
| 40 | + run: checkbashisms yasat common plugins/*test |
| 41 | + ubuntu-pkg: |
| 42 | + runs-on: ubuntu-latest |
| 43 | + name: build ubuntu package |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v4 |
| 46 | + - name: update pkglist |
| 47 | + run: sudo apt-get update |
| 48 | + - name: Install packages |
| 49 | + run: sudo apt-get -y install devscripts gnupg debhelper-compat |
| 50 | + - name: create orig targz |
| 51 | + run: cd .. && tar czf yasat_0-1.orig.tar.gz yasat |
| 52 | + - name: Run debuild |
| 53 | + run: debuild -i -us -uc -b --lintian-opts --profile debian |
| 54 | + - name: Run debuild help |
| 55 | + run: debuild --help |
| 56 | + debian-pkg: |
| 57 | + runs-on: ubuntu-latest |
| 58 | + name: build debian package |
| 59 | + steps: |
| 60 | + - uses: actions/checkout@v4 |
| 61 | + - name: update pkglist |
| 62 | + run: sudo apt-get update |
| 63 | + - name: Install packages |
| 64 | + run: sudo apt-get -y install debootstrap |
| 65 | + - name: Create a bookworm |
| 66 | + run: sudo debootstrap bookworm /root/bookworm |
| 67 | + - name: copy yasat source |
| 68 | + run: sudo cp -a ../yasat /root/bookworm/ |
| 69 | + - name: Install update pkg in chroot |
| 70 | + run: sudo chroot /root/bookworm apt-get update |
| 71 | + - name: Install update pkg in chroot |
| 72 | + run: sudo chroot /root/bookworm apt-get -y install devscripts gnupg debhelper-compat |
| 73 | + - name: Generate wrapper |
| 74 | + run: | |
| 75 | + echo '#!/bin/sh' >> run.sh |
| 76 | + echo 'cd /yasat' >> run.sh |
| 77 | + echo 'debuild -i -us -uc -b' >> run.sh |
| 78 | + chmod 755 run.sh |
| 79 | + sudo cp run.sh /root/bookworm/ |
| 80 | + - name: Run debuild |
| 81 | + run: sudo chroot /root/bookworm /run.sh |
0 commit comments