Merge pull request #10823 from keymanapp/chore/linux/gha-autopkgtest

chore(linux): Add running autopkgtests on GHA
This commit is contained in:
Eberhard Beilharz 2024-02-26 10:59:16 +01:00 committed by GitHub
commit bc6d8d5515
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -152,6 +152,32 @@ jobs:
!artifacts/keyman-srcpkg/
if: always()
autopkg_test:
name: Run autopkgtests
needs: [binary_packages]
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
path: artifacts
merge-multiple: true
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install autopkgtest qemu-system qemu-utils autodep8
- name: Build test image
run: |
cd "${GITHUB_WORKSPACE}/artifacts"
autopkgtest-buildvm-ubuntu-cloud -v --release=jammy
- name: Run tests
run: |
cd "${GITHUB_WORKSPACE}/artifacts"
autopkgtest -B *.deb keyman_*.dsc -- qemu autopkgtest-jammy-amd64.img
deb_signing:
name: Sign source and binary packages
needs: [sourcepackage, binary_packages]