From 85f2d3e55b26588fd13543763a00726437d83c55 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Thu, 23 Jun 2022 13:58:07 +0200 Subject: [PATCH] Add Debian autopkgtest --- .github/workflows/debian-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/debian-ci.yml diff --git a/.github/workflows/debian-ci.yml b/.github/workflows/debian-ci.yml new file mode 100644 index 0000000..8d235d5 --- /dev/null +++ b/.github/workflows/debian-ci.yml @@ -0,0 +1,30 @@ +name: Debian Autopkgtest + +on: + pull_request: {} + push: {} + +jobs: + + debian-build: + # focal is too old, use jammy + runs-on: ubuntu-22.04 + steps: + + - name: Checkout + uses: actions/checkout@v2 + + - name: Tweak debhelper compat level for focal + run: sed -i -e 's/debhelper-compat (= 13)/debhelper-compat (= 12)/' debian/control + + - name: Install build-dependencies + run: sudo apt-get build-dep -y . + + - name: Build pgloader.deb + run: dpkg-buildpackage --no-sign --buildinfo-option=--version -b + + - name: Install autopkgtest + run: sudo apt-get install -y autopkgtest + + - name: Autopkgtest + run: sudo autopkgtest ./ ../pgloader_*_amd64.deb -- null