Skip to content

Commit

Permalink
CI: Add workflow to run autopkgtests on the previously built deb package
Browse files Browse the repository at this point in the history
Ensure that autopkgtests works with authd at every run
  • Loading branch information
3v1n0 committed Feb 26, 2024
1 parent cc6c90f commit dd5f794
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-deb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,41 @@ jobs:
run: |
runuser -u tester -- lintian --pedantic --fail-on error \
./*-debian-packages/*_${{ needs.build-deb-package.outputs.pkg-version }}_*.deb
run-autopkgtests:
name: Run autopkgtests
needs: build-deb-package
runs-on: ubuntu-latest

container:
image: ubuntu:devel

steps:
- name: Prepare container
run: |
set -eu
echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90aptyes
apt update
- name: Download artifacts
uses: actions/download-artifact@v4
with:
run-id: ${{ needs.build-deb-package.outputs.run-id }}

- name: Install dependencies
run: |
apt install autopkgtest
- name: Create test user
run: |
apt install adduser
adduser --disabled-password --gecos "" tester
- name: Run autopkgtests
run: |
mv -v ./*-debian-source/* .
mv -v ./*-debian-packages/* .
autopkgtest --apt-pocket proposed --apt-upgrade --no-built-binaries --user=tester \
*_${{ needs.build-deb-package.outputs.pkg-version }}*.deb \
${{ needs.build-deb-package.outputs.pkg-name }}_${{ needs.build-deb-package.outputs.pkg-version }}_source.changes -- null

0 comments on commit dd5f794

Please sign in to comment.