Skip to content

CI: Build debian packages and run autopackage tests #5

CI: Build debian packages and run autopackage tests

CI: Build debian packages and run autopackage tests #5

Workflow file for this run

name: Build debian packages
on:
push:
branches:
- main
tags:
- "*"
pull_request:
env:
DEBIAN_FRONTEND: noninteractive
DEBCONF_NONINTERACTIVE_SEEN: true
TERM: dumb
jobs:
build-deb-package:

Check failure on line 17 in .github/workflows/build-deb.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-deb.yaml

Invalid workflow file

You have an error in your yaml syntax on line 17
name: Build ubuntu package
runs-on: ubuntu-latest
- name: Checkout authd code
uses: actions/checkout@v4
- name: Build debian packages and sources
uses: 3v1n0/desktop-engineering/gh-actions/common/build-debian@build-deb-docker
with:
docker-image: ubuntu:devel
- name: Install built debs
uses: kohlerdominik/[email protected]
with:
image: ubuntu:devel
environment: |
TERM
DEBIAN_FRONTEND
workdir: ${{ env.BUILD_OUTPUT_DIR }}
volumes: |
${{ env.BUILD_OUTPUT_DIR }}:${{ env.BUILD_OUTPUT_DIR }}
shell: bash
run: |
set -eu
echo "::group::Update instance"
apt update -y
echo "::endgroup::"
echo "::group::Simulate packages install"
apt install --simulate *.deb
echo "::endgroup::"
# - name: Lint generated debs
# run: |
# $AS_USER lintian --pedantic --fail-on error ./*.deb
# - name: Build package sources
# run: |
# dpkg-buildpackage -S
# mkdir deb-sources
# mv -v ../authd_* deb-sources
# - name: Archiving source packages
# uses: actions/upload-artifact@v3
# with:
# name: debian-packages-sources
# path: deb-sources
# if-no-files-found: error
run-autopkgtests:
name: Run autopkgtests
needs: build-deb-package
runs-on: ubuntu-latest
container:
image: ubuntu:devel
steps:
- name: Prepare container
run: |
echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90aptyes
apt update
apt upgrade
apt install git
git config --system --add safe.directory $PWD
- name: Download artifacts
uses: actions/download-artifact@v3
- name: Install dependencies
run: |
apt install autopkgtest
- name: Run autopkgtests
run: |
find
mv ./debian-packages-sources/* .
mv ./debian-packages/* .
autopkgtest --apt-pocket proposed --apt-upgrade --no-built-binaries \
*.deb *.changes -- null